diff --git a/lam/templates/initsuff.php b/lam/templates/initsuff.php index d4777baf..b7919a8f 100644 --- a/lam/templates/initsuff.php +++ b/lam/templates/initsuff.php @@ -148,23 +148,17 @@ if ($_POST['add_suff'] || $_POST['cancel']) { for ($i = 0; $i < sizeof($fail); $i++) { StatusMessage("ERROR", _("Failed to create entry!") . "
" . $error[$i], $fail[$i]); } - echo "

 

\n"; - echo "" . _("User list") . "\n"; echo "\n"; } else { // print success message StatusMessage("INFO", "", _("All changes were successful.")); - echo "

 

\n"; - echo "" . _("User list") . "\n"; echo "\n"; } } else { // no suffixes were created StatusMessage("INFO", "", _("No changes were made.")); - echo "

 

\n"; - echo "" . _("User list") . "\n"; echo "\n"; } exit; diff --git a/lam/templates/main_header.php b/lam/templates/main_header.php index a6d60d9d..a857257a 100644 --- a/lam/templates/main_header.php +++ b/lam/templates/main_header.php @@ -40,7 +40,9 @@ setlanguage(); echo $_SESSION['header']; // number of list views (users, groups, ...) -$lists = 2; +$lists = 0; +if ($_SESSION['config']->get_Usersuffix() != "") $lists++; +if ($_SESSION['config']->get_Groupsuffix() != "") $lists++; if ($_SESSION['config']->get_Hostsuffix() != "") $lists++; ?> @@ -71,8 +73,12 @@ if ($_SESSION['config']->get_Hostsuffix() != "") $lists++; ' . _("Users") . '' . "\n"; - echo '' . _("Groups") . '' . "\n"; + if ($_SESSION['config']->get_Usersuffix() != "") { + echo '' . _("Users") . '' . "\n"; + } + if ($_SESSION['config']->get_Groupsuffix() != "") { + echo '' . _("Groups") . '' . "\n"; + } if ($_SESSION['config']->get_Hostsuffix() != "") { echo '' . _("Hosts") . '' . "\n"; }