From ca54b8a759d19c07eebb72183c5a4835e7223881 Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 30 Apr 2010 21:34:33 +0000 Subject: Unset the gateway from the rules before removing it from the array. --- usr/local/www/system_gateway_groups.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr') diff --git a/usr/local/www/system_gateway_groups.php b/usr/local/www/system_gateway_groups.php index ac99235..a7c5e2b 100755 --- a/usr/local/www/system_gateway_groups.php +++ b/usr/local/www/system_gateway_groups.php @@ -73,11 +73,11 @@ if ($_POST) { if ($_GET['act'] == "del") { if ($a_gateway_groups[$_GET['id']]) { $changedesc .= "removed gateway group {$_GET['id']}"; - unset($a_gateway_groups[$_GET['id']]); foreach ($config['filter']['rule'] as $idx => $rule) { if ($rule['gateway'] == $a_gateway_groups[$_GET['id']]['name']) unset($config['filter']['rule'][$idx]['gateway']); } + unset($a_gateway_groups[$_GET['id']]); write_config($changedesc); mark_subsystem_dirty('staticroutes'); header("Location: system_gateway_groups.php"); -- cgit v1.1