summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_authservers.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/system_authservers.php')
-rw-r--r--usr/local/www/system_authservers.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/usr/local/www/system_authservers.php b/usr/local/www/system_authservers.php
index 984f0ab..698a6be 100644
--- a/usr/local/www/system_authservers.php
+++ b/usr/local/www/system_authservers.php
@@ -65,11 +65,19 @@ if ($act == "del") {
exit;
}
+ /* Remove server from main list. */
$serverdeleted = $a_server[$_GET['id']]['name'];
+ foreach ($config['system']['authserver'] as $k => $as) {
+ if ($config['system']['authserver'][$k]['name'] == $serverdeleted)
+ unset($config['system']['authserver'][$k]);
+ }
+
+ /* Remove server from temp list used later on this page. */
unset($a_server[$_GET['id']]);
- write_config();
+
$savemsg = gettext("Authentication Server")." {$serverdeleted} ".
- gettext("successfully deleted")."<br/>";
+ gettext("deleted")."<br/>";
+ write_config($savemsg);
}
if ($act == "edit") {
OpenPOWER on IntegriCloud