aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2007-05-07 20:15:15 +0000
committerHenry Sudhof <kellanved@phpbb.com>2007-05-07 20:15:15 +0000
commit42ea2b5e2da2ef83a897c43ab11ef4d088e65823 (patch)
treee71bbfa2d04af367d4fea0b3d68322526bf63241
parentb7939ba801bd5c4970ade966aa6b423be79f9ef9 (diff)
downloadforums-42ea2b5e2da2ef83a897c43ab11ef4d088e65823.tar
forums-42ea2b5e2da2ef83a897c43ab11ef4d088e65823.tar.gz
forums-42ea2b5e2da2ef83a897c43ab11ef4d088e65823.tar.bz2
forums-42ea2b5e2da2ef83a897c43ab11ef4d088e65823.tar.xz
forums-42ea2b5e2da2ef83a897c43ab11ef4d088e65823.zip
#10617
git-svn-id: file:///svn/phpbb/trunk@7501 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/includes/functions_upload.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_upload.php b/phpBB/includes/functions_upload.php
index 99d321ede9..84afbbb9bd 100644
--- a/phpBB/includes/functions_upload.php
+++ b/phpBB/includes/functions_upload.php
@@ -345,7 +345,7 @@ class filespec
}
// Make sure the dimensions match a valid image
- if ($this->width < 2 || $this->height < 2)
+ if (empty($this->width) || empty($this->height))
{
$this->error[] = $user->lang['ATTACHED_IMAGE_NOT_IMAGE'];
}