summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_rules.php5
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}");
OpenPOWER on IntegriCloud