aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2009-07-31 15:49:14 +0000
committerAndreas Fischer <bantu@phpbb.com>2009-07-31 15:49:14 +0000
commit154f143a8cc866b2d84c9b42257e4f59aa50a945 (patch)
tree727ee0f39a4c1fdc17cd7b8e68963d671bb14654 /phpBB/includes/functions_posting.php
parenta718e22a3112e85039e562172de9e7fc487f9017 (diff)
downloadforums-154f143a8cc866b2d84c9b42257e4f59aa50a945.tar
forums-154f143a8cc866b2d84c9b42257e4f59aa50a945.tar.gz
forums-154f143a8cc866b2d84c9b42257e4f59aa50a945.tar.bz2
forums-154f143a8cc866b2d84c9b42257e4f59aa50a945.tar.xz
forums-154f143a8cc866b2d84c9b42257e4f59aa50a945.zip
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
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 543472ad4e..bf3eef02c4 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -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);