fixing the fix ;-) now it's working in php4 + 5

This commit is contained in:
Ralf Becker 2005-05-30 14:18:23 +00:00
parent 737e10cb6e
commit a3fb79a6a4

View File

@ -159,7 +159,6 @@
uasort($users,strcasecmp); uasort($users,strcasecmp);
uasort($groups,strcasecmp); uasort($groups,strcasecmp);
$select = $already_selected + $users + $groups; $select = $already_selected + $users + $groups;
if (count($selected) && !isset($selected[0])) // id's are the keys if (count($selected) && !isset($selected[0])) // id's are the keys
{ {
foreach($selected as $id => $val) foreach($selected as $id => $val)
@ -201,7 +200,10 @@
} }
if ($extra_label) if ($extra_label)
{ {
$select = array_merge(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 += $select;
$select =& $select2; unset($select2);
} }
if ($nohtml) if ($nohtml)