Small fix to get the header working if the individual is not a member of a group.

This commit is contained in:
skeeter 2001-11-06 02:14:34 +00:00
parent a364c687e8
commit e31ca7ffa5
4 changed files with 4 additions and 4 deletions

View File

@ -176,7 +176,7 @@
);
}
$memberships = $GLOBALS['phpgw']->accounts->membership($GLOBALS['phpgw_info']['user']['account_id']);
while(list($key,$group_info) = each($memberships))
while($memberships != False && list($key,$group_info) = each($memberships))
{
$account_perms = $GLOBALS['phpgw']->acl->get_ids_for_location($group_info['account_id'],PHPGW_ACL_READ,'calendar');
while($account_perms && list($key,$group_id) = each($account_perms))

View File

@ -176,7 +176,7 @@
);
}
$memberships = $GLOBALS['phpgw']->accounts->membership($GLOBALS['phpgw_info']['user']['account_id']);
while(list($key,$group_info) = each($memberships))
while($memberships != False && list($key,$group_info) = each($memberships))
{
$account_perms = $GLOBALS['phpgw']->acl->get_ids_for_location($group_info['account_id'],PHPGW_ACL_READ,'calendar');
while($account_perms && list($key,$group_id) = each($account_perms))

View File

@ -176,7 +176,7 @@
);
}
$memberships = $GLOBALS['phpgw']->accounts->membership($GLOBALS['phpgw_info']['user']['account_id']);
while(list($key,$group_info) = each($memberships))
while($memberships != False && list($key,$group_info) = each($memberships))
{
$account_perms = $GLOBALS['phpgw']->acl->get_ids_for_location($group_info['account_id'],PHPGW_ACL_READ,'calendar');
while($account_perms && list($key,$group_id) = each($account_perms))

View File

@ -176,7 +176,7 @@
);
}
$memberships = $GLOBALS['phpgw']->accounts->membership($GLOBALS['phpgw_info']['user']['account_id']);
while(list($key,$group_info) = each($memberships))
while($memberships != False && list($key,$group_info) = each($memberships))
{
$account_perms = $GLOBALS['phpgw']->acl->get_ids_for_location($group_info['account_id'],PHPGW_ACL_READ,'calendar');
while($account_perms && list($key,$group_id) = each($account_perms))