mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-20 21:52:22 +03:00
Add case for null $caldav_event
This commit is contained in:
parent
c8aef548ff
commit
0522e67444
1 changed files with 1 additions and 1 deletions
|
@ -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.');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue