diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-02-19 20:33:00 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-02-19 20:33:00 +1100 |
| commit | 6c4f3b5faa2f6ab157cf6bb19f158d9300d5fb2a (patch) | |
| tree | 4181c4a4d792c3af59cf065122c6185b141384b4 /inc/functions.php | |
| parent | 9a0d23b560614bde15f46f4fb51908dfcb8842a6 (diff) | |
Fixed undoImage()
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 5 |
1 files 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) { |
