diff options
author | Simon Rettberg | 2020-11-04 08:35:53 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-11-04 08:35:53 +0100 |
commit | 9b84fb3452888d3c8ce4f6000225772483f5b199 (patch) | |
tree | 3c68c272ff211e94ea0a3f0242284e32251a6550 /modules-available/locationinfo/inc/icalparser.inc.php | |
parent | [sysconfig] Display duplicate files for generated system config (diff) | |
download | slx-admin-9b84fb3452888d3c8ce4f6000225772483f5b199.tar.gz slx-admin-9b84fb3452888d3c8ce4f6000225772483f5b199.tar.xz slx-admin-9b84fb3452888d3c8ce4f6000225772483f5b199.zip |
[locationinfo] ical: Fix undefined index access
Diffstat (limited to 'modules-available/locationinfo/inc/icalparser.inc.php')
-rw-r--r-- | modules-available/locationinfo/inc/icalparser.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
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); } /** |