mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
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($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)
|
||||||
|
Loading…
Reference in New Issue
Block a user