forked from extern/egroupware
fixing the fix ;-) now it's working in php4 + 5
This commit is contained in:
parent
737e10cb6e
commit
a3fb79a6a4
@ -159,7 +159,6 @@
|
||||
uasort($users,strcasecmp);
|
||||
uasort($groups,strcasecmp);
|
||||
$select = $already_selected + $users + $groups;
|
||||
|
||||
if (count($selected) && !isset($selected[0])) // id's are the keys
|
||||
{
|
||||
foreach($selected as $id => $val)
|
||||
@ -201,7 +200,10 @@
|
||||
}
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user