Dont nest the events.
This commit is contained in:
parent
b3a4836a10
commit
8bccaab4a2
1 changed files with 8 additions and 10 deletions
|
@ -140,21 +140,19 @@ class Event extends BaseEntity
|
|||
}
|
||||
|
||||
$event = [
|
||||
"VEVENT" => [
|
||||
'SUMMARY' => $this->summary,
|
||||
'DTSTART' => $this->startdate,
|
||||
'DESCRIPTION' => $this->description,
|
||||
'URL' => $this->url,
|
||||
'CATEGORIES' => $categories,
|
||||
]
|
||||
'SUMMARY' => $this->summary,
|
||||
'DTSTART' => $this->startdate,
|
||||
'DESCRIPTION' => $this->description,
|
||||
'URL' => $this->url,
|
||||
'CATEGORIES' => $categories,
|
||||
];
|
||||
if (!is_null($this->enddate))
|
||||
$event["VEVENT"]["DTEND"] = $this->enddate;
|
||||
$event["DTEND"] = $this->enddate;
|
||||
|
||||
if ($this->location instanceof Location) {
|
||||
$event["VEVENT"]["LOCATION"] = $this->location->name;
|
||||
$event["LOCATION"] = $this->location->name;
|
||||
if (\is_float($this->location->lon) && \is_float($this->location->lat)) {
|
||||
$event["VEVENT"]["GEO"] = [$this->location->lat, $this->location->lon];
|
||||
$event["GEO"] = [$this->location->lat, $this->location->lon];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue