diff --git a/calendar/inc/class.socalendar_sql.inc.php b/calendar/inc/class.socalendar_sql.inc.php index 18279f0d05..081590973b 100755 --- a/calendar/inc/class.socalendar_sql.inc.php +++ b/calendar/inc/class.socalendar_sql.inc.php @@ -263,7 +263,7 @@ class socalendar_ extends socalendar__ } $member_groups = $GLOBALS['phpgw']->accounts->membership($this->user); @reset($member_groups); - while(list($key,$group_info) = each($member_groups)) + while($member_groups != False && list($key,$group_info) = each($member_groups)) { $member[] = $group_info['account_id']; }