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,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);