fixed login name display if contains no "="

This commit is contained in:
Roland Gruber 2013-03-24 10:01:54 +00:00
parent 57ab5f7959
commit 23819a8cf4
1 changed files with 6 additions and 1 deletions

View File

@ -336,8 +336,13 @@ function display_LoginPage($config_object) {
for($i = 0; $i < count($admins); $i++) { for($i = 0; $i < count($admins); $i++) {
$text = explode(",", $admins[$i]); $text = explode(",", $admins[$i]);
$text = explode("=", $text[0]); $text = explode("=", $text[0]);
if (isset($text[1])) {
$adminList[$text[1]] = $admins[$i]; $adminList[$text[1]] = $admins[$i];
} }
else {
$adminList[$text[0]] = $admins[$i];
}
}
$userSelect = new htmlSelect('username', $adminList); $userSelect = new htmlSelect('username', $adminList);
$userSelect->setHasDescriptiveElements(true); $userSelect->setHasDescriptiveElements(true);
$userSelect->alignment = htmlElement::ALIGN_LEFT; $userSelect->alignment = htmlElement::ALIGN_LEFT;