mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
Addition to r9899 for bug #48695 - trying to create thumbnail for broken jpeg image
Authorised by: AcydBurn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9904 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -684,6 +684,7 @@ function create_thumbnail($source, $destination, $mimetype)
|
||||
break;
|
||||
|
||||
case IMG_JPG:
|
||||
@ini_set('gd.jpeg_ignore_warning', 1);
|
||||
$image = @imagecreatefromjpeg($source);
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user