From 6c4f3b5faa2f6ab157cf6bb19f158d9300d5fb2a Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sat, 19 Feb 2011 20:33:00 +1100 Subject: [PATCH] Fixed undoImage() --- inc/functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/functions.php b/inc/functions.php index ed50731c..09e3f1fe 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1144,8 +1144,9 @@ } function undoImage($post) { - unlink($post['file']); - unlink($post['thumb']); + if($post['has_file']) + @unlink($post['file']); + @unlink($post['thumb']); } function createimage($type, $source_pic) {