diff options
author | Bill Marquette <billm@pfsense.org> | 2005-05-15 23:05:50 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-05-15 23:05:50 +0000 |
commit | 734edbdf0490506a041a7e9470d4c99566028b5d (patch) | |
tree | bbe7b7cbdaddd0c709ec3d8bcc5272277c6a7f4e /usr | |
parent | 4e0d02b3aaef576bfb88de9cbe58c604afdec590 (diff) | |
download | pfsense-734edbdf0490506a041a7e9470d4c99566028b5d.zip pfsense-734edbdf0490506a041a7e9470d4c99566028b5d.tar.gz |
Fix rules disable toggle
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_rules.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php index cfac5c1..b282bbc 100755 --- a/usr/local/www/firewall_rules.php +++ b/usr/local/www/firewall_rules.php @@ -89,7 +89,10 @@ if (isset($_POST['del_x'])) { } } else if ($_GET['act'] == "toggle") { if ($a_filter[$_GET['id']]) { - $a_filter[$_GET['id']]['disabled'] = !isset($a_filter[$_GET['id']]['disabled']); + if($a_filter[$_GET['id']]['disabled']) + unset($a_filter[$_GET['id']]['disabled']); + else + $a_filter[$_GET['id']]['disabled'] = true; write_config(); touch($d_filterconfdirty_path); header("Location: firewall_rules.php?if={$if}"); |