From 0e953fdeeb85cfc7a801f3b8e493db6d88b29f81 Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Thu, 10 Jun 2004 15:07:40 +0000 Subject: [PATCH] fix for BUG [ 969767 ] Projects: Administrator list and BUG [ 969759 ] Edit manager list - Duplicate Names --- phpgwapi/inc/class.accounts.inc.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.accounts.inc.php b/phpgwapi/inc/class.accounts.inc.php index 589422ea98..734c6c0561 100644 --- a/phpgwapi/inc/class.accounts.inc.php +++ b/phpgwapi/inc/class.accounts.inc.php @@ -416,16 +416,26 @@ } } - $i = count($add_users['users']); + if(is_array($add_users['groups'])) + { + $add_users['groups'] = array_unique($add_users['groups']); + sort($add_users['groups']); + } + + #$i = count($add_users['users']); while(is_array($members) && list(,$mem) = each($members)) { for($j=0;$j