From 42ea2b5e2da2ef83a897c43ab11ef4d088e65823 Mon Sep 17 00:00:00 2001 From: Henry Sudhof Date: Mon, 7 May 2007 20:15:15 +0000 Subject: [PATCH] #10617 git-svn-id: file:///svn/phpbb/trunk@7501 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']; }