diff options
Diffstat (limited to 'admin/include')
-rw-r--r-- | admin/include/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php index 4178a285f..63a79a2bf 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -171,7 +171,7 @@ SELECT foreach (array($file_path, $thumbnail_path, $high_path) as $path) { - if (isset($path) and !unlink($path)) + if (isset($path) and is_file($path) and !unlink($path)) { die('"'.$path.'" cannot be removed'); } |