Skip to content

Commit

Permalink
Set missing eventObject attributes to empty string ''
Browse files Browse the repository at this point in the history
  • Loading branch information
kozi committed Sep 20, 2021
1 parent 4634605 commit fb6d9a4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ContaoFullcalendar/EventMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ public static function getCalendarEventsModel(Node $vevent, \Model $calObj, \Dat
}

$eventObject->fullcal_id = $eventId;
$eventObject->fullcal_uid = $eData['uid'];
$eventObject->fullcal_desc = $eData['description'];
$eventObject->fullcal_cat = $eData['categories'];
$eventObject->teaser = $eData['description'];
$eventObject->title = $eData['summary'];
$eventObject->location = $eData['location'];
$eventObject->fullcal_uid = isset($eData['uid']) ? $eData['uid'] : '';
$eventObject->fullcal_desc = isset($eData['description']) ? $eData['description'] : '';
$eventObject->fullcal_cat = isset($eData['categories']) ? $eData['categories'] : '';
$eventObject->teaser = isset($eData['description']) ? $eData['description'] : '';
$eventObject->title = isset($eData['summary']) ? $eData['summary'] : '';
$eventObject->location = isset($eData['location']) ? $eData['location'] : '';
$eventObject->pid = $calObj->id;
$eventObject->source = 'default';
$eventObject->published = '1';
Expand Down

0 comments on commit fb6d9a4

Please sign in to comment.