From a3fb79a6a449a501940fa9938935887dae4301dc Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 30 May 2005 14:18:23 +0000 Subject: [PATCH] fixing the fix ;-) now it's working in php4 + 5 --- phpgwapi/inc/class.uiaccountsel.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.uiaccountsel.inc.php b/phpgwapi/inc/class.uiaccountsel.inc.php index 5c283940b6..f1850119f4 100644 --- a/phpgwapi/inc/class.uiaccountsel.inc.php +++ b/phpgwapi/inc/class.uiaccountsel.inc.php @@ -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)