From cbb742ea8073a35fe812ba9da97faed2b8612d61 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Mon, 7 May 2007 21:21:40 +0000 Subject: #10617 git-svn-id: file:///svn/phpbb/trunk@7503 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_posting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/includes/functions_posting.php') diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 4b8890178a..06ca808d9c 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -580,7 +580,7 @@ function create_thumbnail($source, $destination, $mimetype) list($width, $height, $type, ) = $dimension; - if ($width < 2 || $height < 2) + if (empty($width) || empty($height)) { return false; } -- cgit v1.2.1