fixed login name display if contains no "="
This commit is contained in:
parent
57ab5f7959
commit
23819a8cf4
|
@ -336,8 +336,13 @@ function display_LoginPage($config_object) {
|
|||
for($i = 0; $i < count($admins); $i++) {
|
||||
$text = explode(",", $admins[$i]);
|
||||
$text = explode("=", $text[0]);
|
||||
if (isset($text[1])) {
|
||||
$adminList[$text[1]] = $admins[$i];
|
||||
}
|
||||
else {
|
||||
$adminList[$text[0]] = $admins[$i];
|
||||
}
|
||||
}
|
||||
$userSelect = new htmlSelect('username', $adminList);
|
||||
$userSelect->setHasDescriptiveElements(true);
|
||||
$userSelect->alignment = htmlElement::ALIGN_LEFT;
|
||||
|
|
Loading…
Reference in New Issue