From 5ea76e223098238302a13cb122516c3bc793ff48 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 4 Feb 2015 10:37:52 +0000 Subject: [PATCH] fix calendar_groupdav::isParticipant() called with NULL, caused by recurring event starts in future behind horizont --- calendar/inc/class.calendar_groupdav.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/calendar/inc/class.calendar_groupdav.inc.php b/calendar/inc/class.calendar_groupdav.inc.php index 5c02dad457..3b54e91539 100644 --- a/calendar/inc/class.calendar_groupdav.inc.php +++ b/calendar/inc/class.calendar_groupdav.inc.php @@ -659,6 +659,11 @@ class calendar_groupdav extends groupdav_handler 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) { //error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."($uid)[$k]:" . array2string($recurrence));