fix in get_grants() if the user is by some unknown reason, not associated to a group

This commit is contained in:
skeeter 2001-03-19 20:50:46 +00:00
parent 4199aceffc
commit 4b31a3a93b

View File

@ -513,7 +513,7 @@ It should use the values in the $this->data
. "acl_location in ";
$security = "('". $phpgw_info['user']['account_id'] ."'";
$my_memberships = $phpgw->accounts->memberships(intval($phpgw_info['user']['account_id']));
while($groups = each($my_memberships))
while($my_memberships && $groups = each($my_memberships))
{
$group = each($groups);
$security .= ",'" . $group[1]['account_id'] . "'";