mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
previously calling name2id to get the name
This commit is contained in:
parent
26b4025092
commit
c7ec8ad982
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user