forked from extern/egroupware
minor fixes for memberships()
This commit is contained in:
parent
a0628a66bb
commit
18e2eaa767
@ -29,7 +29,7 @@
|
||||
var $db;
|
||||
var $account_id;
|
||||
var $data;
|
||||
var $memberships;
|
||||
var $memberships = Array();
|
||||
var $members;
|
||||
|
||||
function accounts()
|
||||
|
@ -62,7 +62,7 @@
|
||||
$security_equals = $phpgw->acl->get_location_list_for_id("phpgw_group", 1, intval($account_id));
|
||||
if (!$security_equals) { return False; }
|
||||
for ($idx=0; $idx<count($security_equals); $idx++){
|
||||
$name = $this->name2id($security_equals[$idx]);
|
||||
$name = $this->id2name(intval($security_equals[$idx]));
|
||||
$this->memberships[] = Array("account_id" => $security_equals[$idx], "account_name" => "$name");
|
||||
}
|
||||
return $this->memberships;
|
||||
@ -84,4 +84,4 @@
|
||||
return $this->members;
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user