From 0522e674441216a87a32e43ac9066e7d99705a65 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Wed, 18 Dec 2024 09:35:02 +0200 Subject: [PATCH] Add case for null $caldav_event --- application/controllers/Caldav.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Caldav.php b/application/controllers/Caldav.php index 7b1aae45..6488902a 100644 --- a/application/controllers/Caldav.php +++ b/application/controllers/Caldav.php @@ -183,7 +183,7 @@ class Caldav extends EA_Controller try { $caldav_event = $CI->caldav_sync->get_event($provider, $local_event['id_caldav_calendar']); - if ($caldav_event['status'] === 'CANCELLED') { + if (!$caldav_event || $caldav_event['status'] === 'CANCELLED') { throw new Exception('Event is cancelled, remove the record from Easy!Appointments.'); }