We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80175f4 commit 11a7279Copy full SHA for 11a7279
1 file changed
src/Types/Event.php
@@ -113,8 +113,8 @@ public function toICalendarEvent(string|CarbonInterface $date): ?ICalendarEvent
113
$iCalEvent->address($address);
114
}
115
116
- if (! is_null($coordinates = $this->event->coordinates)) {
117
- $iCalEvent->coordinates($coordinates->latitude, $coordinates->longitude);
+ if (! is_null($this->event->coordinates->latitude) && ! is_null($this->event->coordinates->longitude)) {
+ $iCalEvent->coordinates($this->event->coordinates->latitude, $this->event->coordinates->longitude);
118
119
120
if (! is_null($description = $this->event->description)) {
0 commit comments