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.'); }