summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-03-04 20:24:33 +0000
committerErmal <eri@pfsense.org>2011-03-04 20:24:33 +0000
commit328c1def40513f3c39e18016e63ed58f5c59a78b (patch)
treec14ff09c9ecc616ecef78eecf17bcea970c76bda
parent006802ab988a6fd7be75d09f00464fd19c903ab7 (diff)
downloadpfsense-328c1def40513f3c39e18016e63ed58f5c59a78b.zip
pfsense-328c1def40513f3c39e18016e63ed58f5c59a78b.tar.gz
Oops make code correct.
-rw-r--r--etc/inc/captiveportal.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index 480b268..fff5b33 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -1294,7 +1294,7 @@ function captiveportal_write_db($cpdb, $locked = false, $remove = array()) {
if (!empty($remove)) {
$cpdb = captiveportal_read_db(true);
- foreach ($remove as $key => $entr)
+ foreach ($remove as $key)
unset($cpdb[$key]);
}
$fd = @fopen("{$g['vardb_path']}/captiveportal.db", "w");
OpenPOWER on IntegriCloud