From 01faad8fbf8e6a9fe3c530915469f58d9d46e19b Mon Sep 17 00:00:00 2001 From: Fabian Franz Date: Sun, 27 Dec 2015 23:21:15 +0100 Subject: [PATCH] improvements by @DokuKaefer --- src/www/system_authservers.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/www/system_authservers.php b/src/www/system_authservers.php index 407a3a6c3..1ffdf8b6d 100644 --- a/src/www/system_authservers.php +++ b/src/www/system_authservers.php @@ -281,9 +281,11 @@ legacy_html_escape_form_data($a_server); include("head.inc"); -$main_buttons = array( - array('label'=>'Add server', 'href'=>'system_authservers.php?act=new'), -); +$main_buttons = array(); +if (!isset($_GET['act']) || $_GET['act'] != 'new') +{ + $main_buttons[] = array('label'=>gettext('Add server'), 'href'=>'system_authservers.php?act=new'); +} ?> @@ -414,6 +416,13 @@ $( document ).ready(function() { ?>
+ + + +
+ + +