diff --git a/lib/Service/Appointments/BookingCalendarWriter.php b/lib/Service/Appointments/BookingCalendarWriter.php index 7b46b76e2a..c35f993ceb 100644 --- a/lib/Service/Appointments/BookingCalendarWriter.php +++ b/lib/Service/Appointments/BookingCalendarWriter.php @@ -181,8 +181,8 @@ public function write(AppointmentConfig $config, $vcalendar->VEVENT->add($alarm); } - if ($config->getLocation() !== null) { - $vcalendar->VEVENT->add('LOCATION', $config->getLocation()); + if ($location !== null) { + $vcalendar->VEVENT->add('LOCATION', $location); } $vcalendar->VEVENT->add('X-NC-APPOINTMENT', $config->getToken());