From c7ec8ad9825dc9631ef19e2dda9e6978f77f93e0 Mon Sep 17 00:00:00 2001 From: skeeter Date: Sun, 18 Feb 2001 23:28:15 +0000 Subject: [PATCH] previously calling name2id to get the name --- phpgwapi/inc/class.accounts_shared.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.accounts_shared.inc.php b/phpgwapi/inc/class.accounts_shared.inc.php index 2296c803ef..5c53ab039b 100644 --- a/phpgwapi/inc/class.accounts_shared.inc.php +++ b/phpgwapi/inc/class.accounts_shared.inc.php @@ -78,10 +78,10 @@ $acl = CreateObject('phpgwapi.acl'); $security_equals = $acl->get_ids_for_location(intval($account_id), 1, 'phpgw_group'); unset($acl); - if (!$security_equals) { return False; } + if ($security_equals == False) { return False; } for ($idx=0; $idxname2id($security_equals[$idx]); - $this->members[] = Array('account_id' => $security_equals[$idx], 'account_name' => "$name"); + $name = $this->id2name(intval($security_equals[$idx])); + $this->members[] = Array('account_id' => intval($security_equals[$idx]), 'account_name' => "$name"); } return $this->members; }