mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
killed a warning if user is in no group
This commit is contained in:
parent
5f0ea8e766
commit
42e8f97101
@ -115,7 +115,7 @@
|
||||
$user = $GLOBALS['phpgw_info']['user']['account_id'];
|
||||
$groups = $GLOBALS['phpgw']->accounts->membership($user);
|
||||
$str = '<option value="-1"'.(intval($this->bo->prefs['calendar']['planner_start_with_group'])==-1?' selected':'').'>none</option>'."\n";
|
||||
while (list($key,$group) = each($groups))
|
||||
while (list($key,$group) = @each($groups))
|
||||
{
|
||||
$str .= '<option value="'.$group['account_id'].'"'.(intval($this->bo->prefs['calendar']['planner_start_with_group'])==$group['account_id']?' selected':'').'>'.$GLOBALS['phpgw']->common->grab_owner_name($group['account_id']).'</option>'."\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user