aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/include/functions.php')
-rw-r--r--admin/include/functions.php2
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');
}