summaryrefslogtreecommitdiffstats
path: root/etc/inc/util.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r--etc/inc/util.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index a3fd7ed..d8257c7 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -290,7 +290,7 @@ function unlink_if_exists($fn) {
$to_do = glob($fn);
if(is_array($to_do)) {
foreach($to_do as $filename)
- if (file_exists($filename)) unlink($filename);
+ if (file_exists($filename) && !is_dir($filename)) unlink($filename);
} else {
if (file_exists($fn)) unlink($fn);
}
OpenPOWER on IntegriCloud