From 2ac8dc2c0fff26265ab911440b66e4a51923c173 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sat, 23 Apr 2011 00:38:25 +1000 Subject: cleanup --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/functions.php') diff --git a/inc/functions.php b/inc/functions.php index 6ecb34ce..e3785298 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1418,7 +1418,7 @@ switch($type) { case 'jpg': case 'jpeg': - if(!$image = imagecreatefromjpeg($source_pic)) { + if(!$image = @imagecreatefromjpeg($source_pic)) { unlink($source_pic); error($config['error']['invalidimg']); } -- cgit v1.3