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) {