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