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