summaryrefslogtreecommitdiff
path: root/includes/pages/schedule/ImportSchedule.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/pages/schedule/ImportSchedule.php')
-rw-r--r--includes/pages/schedule/ImportSchedule.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/pages/schedule/ImportSchedule.php b/includes/pages/schedule/ImportSchedule.php
index 8bc769d4..136f1816 100644
--- a/includes/pages/schedule/ImportSchedule.php
+++ b/includes/pages/schedule/ImportSchedule.php
@@ -451,13 +451,14 @@ class ImportSchedule extends BaseController
$guid = $shift->guid;
$shift = $this->loadShift($shift->shift_id);
$event = $scheduleEvents[$guid];
+ $room = $rooms->where('name', $event->getRoom()->getName())->first();
if (
$shift->title != $event->getTitle()
|| $shift->shift_type_id != $shiftType
|| Carbon::createFromTimestamp($shift->start) != $event->getDate()
|| Carbon::createFromTimestamp($shift->end) != $event->getEndDate()
- || $shift->room_id != $rooms->where('name', $event->getRoom()->getName())->first()->id
+ || $shift->room_id != ($room->id ?? '')
|| $shift->url != $event->getUrl()
) {
$changeEvents[$guid] = $event;