From 734edbdf0490506a041a7e9470d4c99566028b5d Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Sun, 15 May 2005 23:05:50 +0000 Subject: Fix rules disable toggle --- usr/local/www/firewall_rules.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr/local') 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}"); -- cgit v1.1