Google Calendar sync must not break when syncing all day events (#945).

This commit is contained in:
Alex Tselegidis 2020-12-10 11:31:59 +02:00
parent 9409633a5d
commit ae3e0b1dcb

View file

@ -182,6 +182,11 @@ class Google extends EA_Controller {
continue;
}
if ($google_event->getStart()->getDateTime() === $google_event->getEnd()->getDateTime())
{
continue; // Skip all day events
}
$results = $CI->appointments_model->get_batch(['id_google_calendar' => $google_event->getId()]);
if ( ! empty($results))