From eddfaeb59b57aef89aa33ad10cf6531d35323f7c Mon Sep 17 00:00:00 2001 From: shish Date: Thu, 26 Jul 2007 15:42:40 +0000 Subject: [PATCH] hide the PHP error, we'll deal with it ourselves git-svn-id: file:///home/shish/svn/shimmie2/trunk@377 7f39781d-f577-437e-ae19-be835c7a54ca --- ext/upload/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/upload/main.php b/ext/upload/main.php index cd6049c7..59c96419 100644 --- a/ext/upload/main.php +++ b/ext/upload/main.php @@ -162,7 +162,7 @@ class Upload extends Extension { "File too large (".filesize($tmp_filename)." > ". ($config->get_int('upload_size')).")"); } - else if(!($info = getimagesize($tmp_filename))) { + else if(!($info = @getimagesize($tmp_filename))) { $this->theme->display_upload_error($page, "Error with ".html_escape($filename), "PHP doesn't recognise this as an image file"); }