fix calendar_groupdav::isParticipant() called with NULL, caused by recurring event starts in future behind horizont

This commit is contained in:
Ralf Becker 2015-02-04 10:38:46 +00:00
parent af4373c307
commit d50383b1aa

View File

@ -659,6 +659,11 @@ class calendar_groupdav extends groupdav_handler
break; break;
} }
} }
// if recurring event starts in future behind horizont, nothing will be returned by bo::search()
if (!isset($master) && !($master = $this->bo->read($uid)))
{
return array();
}
foreach($events as $k => &$recurrence) foreach($events as $k => &$recurrence)
{ {
//error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."($uid)[$k]:" . array2string($recurrence)); //error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."($uid)[$k]:" . array2string($recurrence));