diff --git a/phpgwapi/inc/class.accounts_shared.inc.php b/phpgwapi/inc/class.accounts_shared.inc.php index af037e48bd..63e68510d4 100644 --- a/phpgwapi/inc/class.accounts_shared.inc.php +++ b/phpgwapi/inc/class.accounts_shared.inc.php @@ -82,7 +82,8 @@ for ($idx=0; $idxmemberships[] = Array('account_id' => intval($security_equals[$idx]), 'account_name' => $this->id2name(intval($security_equals[$idx]))); + $groups = intval($security_equals[$idx]); + $this->memberships[] = Array('account_id' => $groups, 'account_name' => $this->id2name($groups)); } return $this->memberships;