summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-20 20:51:10 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-20 20:51:10 +0000
commit1a9a95f81304fd490ba388591543908138c29433 (patch)
tree16604e50cf3eb757969263d2be83b98821ad1744 /etc
parent336cb718b10ff053b119216cdd68f832271a175c (diff)
downloadpfsense-1a9a95f81304fd490ba388591543908138c29433.zip
pfsense-1a9a95f81304fd490ba388591543908138c29433.tar.gz
Glob returns false. use the original parm
Diffstat (limited to 'etc')
-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 b555115..e655245 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -292,7 +292,7 @@ function unlink_if_exists($fn) {
foreach($to_do as $filename)
if (file_exists($filename)) unlink($filename);
} else {
- if (file_exists($to_do)) unlink($to_do);
+ if (file_exists($fn)) unlink($fn);
}
}
OpenPOWER on IntegriCloud