1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 14:30:32 +02:00

Fix bug #48695 - Do not try to create thumbnails for images we cannot open properly.

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9899 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Andreas Fischer
2009-07-31 15:49:14 +00:00
parent a718e22a31
commit 154f143a8c
2 changed files with 6 additions and 0 deletions

View File

@@ -696,6 +696,11 @@ function create_thumbnail($source, $destination, $mimetype)
break;
}
if (empty($image))
{
return false;
}
if ($type['version'] == 1)
{
$new_image = imagecreate($new_width, $new_height);