mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +01:00
minor fixes for memberships()
This commit is contained in:
parent
a0628a66bb
commit
18e2eaa767
@ -29,7 +29,7 @@
|
|||||||
var $db;
|
var $db;
|
||||||
var $account_id;
|
var $account_id;
|
||||||
var $data;
|
var $data;
|
||||||
var $memberships;
|
var $memberships = Array();
|
||||||
var $members;
|
var $members;
|
||||||
|
|
||||||
function accounts()
|
function accounts()
|
||||||
|
@ -62,7 +62,7 @@
|
|||||||
$security_equals = $phpgw->acl->get_location_list_for_id("phpgw_group", 1, intval($account_id));
|
$security_equals = $phpgw->acl->get_location_list_for_id("phpgw_group", 1, intval($account_id));
|
||||||
if (!$security_equals) { return False; }
|
if (!$security_equals) { return False; }
|
||||||
for ($idx=0; $idx<count($security_equals); $idx++){
|
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");
|
$this->memberships[] = Array("account_id" => $security_equals[$idx], "account_name" => "$name");
|
||||||
}
|
}
|
||||||
return $this->memberships;
|
return $this->memberships;
|
||||||
@ -84,4 +84,4 @@
|
|||||||
return $this->members;
|
return $this->members;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user