mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-21 06:02:23 +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 {
|
try {
|
||||||
$caldav_event = $CI->caldav_sync->get_event($provider, $local_event['id_caldav_calendar']);
|
$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.');
|
throw new Exception('Event is cancelled, remove the record from Easy!Appointments.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue