diff options
author | Ermal <eri@pfsense.org> | 2013-02-13 19:49:17 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-02-13 19:49:33 +0000 |
commit | 11b26a274d2cdd24b7e5a536c16b103fe18a3986 (patch) | |
tree | e01a1f10b27c400c59d919c09b4a450b4de8fd10 /usr | |
parent | 30b32e73814f52b5f997869246aff321ced56d44 (diff) | |
download | pfsense-11b26a274d2cdd24b7e5a536c16b103fe18a3986.zip pfsense-11b26a274d2cdd24b7e5a536c16b103fe18a3986.tar.gz |
unset var so the test works correctly
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/services_captiveportal_ip_edit.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/services_captiveportal_ip_edit.php b/usr/local/www/services_captiveportal_ip_edit.php index 57201e1..9aadb9e 100755 --- a/usr/local/www/services_captiveportal_ip_edit.php +++ b/usr/local/www/services_captiveportal_ip_edit.php @@ -142,11 +142,12 @@ if ($_POST) { $a_allowedips[] = $ip; } allowedips_sort(); - + write_config(); if (isset($a_cp[$cpzone]['enable']) && is_module_loaded("ipfw.ko")) { $rules = ""; + unset($ipfw); if (isset($oldip) && isset($oldmask)) { $ipfw = pfSense_ipfw_getTablestats($cpzone, 3, $oldip, $oldmask); $rules .= "table 3 delete {$oldip}/{$oldmask}\n"; |