"fixing an old php5 fix, which caused extra-labels to have key 0 instead of '', which caused eg. InfoLog to require two clicks to close an entry (only after called the first time after login)"

This commit is contained in:
Ralf Becker 2007-04-26 07:34:27 +00:00
parent 5548c8b038
commit 20b4f9b77d

View File

@ -258,7 +258,7 @@ class uiaccountsel extends accounts
if ($extra_label) if ($extra_label)
{ {
//in php5 this put's the extra-label at the end: $select = array($extra_label) + $select; //in php5 this put's the extra-label at the end: $select = array($extra_label) + $select;
$select2 = array($extra_label); $select2 = array('' => $extra_label);
$select2 += $select; $select2 += $select;
$select =& $select2; unset($select2); $select =& $select2; unset($select2);
} }