diff options
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r-- | etc/inc/util.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index bdcd832..49a6104 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -287,8 +287,9 @@ function mwexec_bg($command) { /* unlink a file, if it exists */ function unlink_if_exists($fn) { - if (file_exists($fn)) - unlink($fn); + foreach(glob($fn) as $filename) { + if (file_exists($filename)) unlink($filename); + } } /* make a global alias table (for faster lookups) */ |