diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2008-11-17 12:11:22 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2008-11-17 12:11:22 +0000 |
commit | 63552f4ef169f3386f7003136d42bef0ab8945da (patch) | |
tree | 088ff4da195c8fde3f8acc0aa6df03d592ee0582 /usr/local | |
parent | 9ad878a1ecec48afc1400199ca6c6443fc8541ac (diff) | |
download | pfsense-63552f4ef169f3386f7003136d42bef0ab8945da.zip pfsense-63552f4ef169f3386f7003136d42bef0ab8945da.tar.gz |
Make sure to delete the proper entry.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/system_gateways.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr/local/www/system_gateways.php b/usr/local/www/system_gateways.php index 976a9e9..c6d9410 100755 --- a/usr/local/www/system_gateways.php +++ b/usr/local/www/system_gateways.php @@ -68,8 +68,12 @@ if ($_POST) { if ($_GET['act'] == "del") { if ($a_gateways[$_GET['id']]) { - $changedesc .= "removed gateway {$_GET['id']}"; - unset($a_gateways[$_GET['id']]); + /* remove the real entry */ + $realid = $a_gateways[$_GET['id']]['attribute']; + $a_gateways = &$config['gateways']['gateway_item']; + + $changedesc .= "removed gateway {$realid}"; + unset($a_gateways[$realid]); write_config($changedesc); touch($d_staticroutesdirty_path); header("Location: system_gateways.php"); @@ -77,6 +81,7 @@ if ($_GET['act'] == "del") { } } + $pgtitle = array("System","Gateways"); include("head.inc"); |