From e5b36d1b514807dedba2167b27d5d31ec4f4afef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Wed, 1 Apr 2020 14:02:33 +0200 Subject: [PATCH] Fix accessing undefined variable --- .../typo3conf/ext/ep_products/Classes/Service/IcalService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/typo3conf/ext/ep_products/Classes/Service/IcalService.php b/public/typo3conf/ext/ep_products/Classes/Service/IcalService.php index d4aaa788..d7230c49 100644 --- a/public/typo3conf/ext/ep_products/Classes/Service/IcalService.php +++ b/public/typo3conf/ext/ep_products/Classes/Service/IcalService.php @@ -113,7 +113,7 @@ class IcalService implements SingletonInterface $occupancy = $event->getOccupancy(); } - if (!isset($item['to'])) { + if (isset($event) && !isset($item['to'])) { $item['to'] = $event->getEnd(); $this->addOccupancyItem($item); }