From 23819a8cf4893f0eaa62994904fda00af781c9eb Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 24 Mar 2013 10:01:54 +0000 Subject: [PATCH] fixed login name display if contains no "=" --- lam/templates/login.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lam/templates/login.php b/lam/templates/login.php index 487f2a7b..2ce9e949 100644 --- a/lam/templates/login.php +++ b/lam/templates/login.php @@ -336,7 +336,12 @@ function display_LoginPage($config_object) { for($i = 0; $i < count($admins); $i++) { $text = explode(",", $admins[$i]); $text = explode("=", $text[0]); - $adminList[$text[1]] = $admins[$i]; + if (isset($text[1])) { + $adminList[$text[1]] = $admins[$i]; + } + else { + $adminList[$text[0]] = $admins[$i]; + } } $userSelect = new htmlSelect('username', $adminList); $userSelect->setHasDescriptiveElements(true);