minor fixes for memberships()

This commit is contained in:
skeeter 2001-02-08 03:25:22 +00:00
parent a0628a66bb
commit 18e2eaa767
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@
var $db;
var $account_id;
var $data;
var $memberships;
var $memberships = Array();
var $members;
function accounts()

View File

@ -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;
}
}
?>
?>