diff --git a/src/Model/Event.php b/src/Model/Event.php index 8056ec8..2ba786c 100644 --- a/src/Model/Event.php +++ b/src/Model/Event.php @@ -265,7 +265,10 @@ public static function hydrate(array $data, Calendar $calendar = null) $event->description = $data['BodyPreview']; } - $event->location = $data['Location']['DisplayName']; + if (isset($data['Location']) && isset($data['Location']['DisplayName'])) { + $event->location = $data['Location']['DisplayName']; + } + $event->createdAt = new Datetime($data['DateTimeCreated']); $event->updatedAt = new Datetime($data['DateTimeLastModified']);