mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00: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:
parent
530f4963cb
commit
6bc7e15162
1 changed files with 1 additions and 0 deletions
|
@ -684,6 +684,7 @@ function create_thumbnail($source, $destination, $mimetype)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IMG_JPG:
|
case IMG_JPG:
|
||||||
|
@ini_set('gd.jpeg_ignore_warning', 1);
|
||||||
$image = @imagecreatefromjpeg($source);
|
$image = @imagecreatefromjpeg($source);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue