previously calling name2id to get the name

This commit is contained in:
skeeter 2001-02-18 23:28:15 +00:00
parent 26b4025092
commit c7ec8ad982

View File

@ -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; $idx<count($security_equals); $idx++){
$name = $this->name2id($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;
}