From 9b84fb3452888d3c8ce4f6000225772483f5b199 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 4 Nov 2020 08:35:53 +0100 Subject: [locationinfo] ical: Fix undefined index access --- modules-available/locationinfo/inc/icalparser.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules-available/locationinfo/inc/icalparser.inc.php b/modules-available/locationinfo/inc/icalparser.inc.php index 6d41404c..15cd95c6 100644 --- a/modules-available/locationinfo/inc/icalparser.inc.php +++ b/modules-available/locationinfo/inc/icalparser.inc.php @@ -778,7 +778,8 @@ class ICalParser */ protected function doesEventStartOutsideWindow(array $event) { - return !$this->isValidDate($event['DTSTART']) || $this->isOutOfRange($event['DTSTART'], $this->windowMinTimestamp, $this->windowMaxTimestamp); + return !isset($event['DTSTART']) || !$this->isValidDate($event['DTSTART']) + || $this->isOutOfRange($event['DTSTART'], $this->windowMinTimestamp, $this->windowMaxTimestamp); } /** -- cgit v1.2.3-55-g7522