diff --git a/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php b/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php index 205f61c4..91a7b271 100644 --- a/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php +++ b/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php @@ -634,9 +634,12 @@ class DateImportService implements SingletonInterface, LoggerAwareInterface $minPriceOverall = $price; } - if ($roomXml->attributes()['status'] === static::STATUS_STOP && $price) { + // Determine status + $statusXml = (string) $roomXml->attributes()['status']; + + if (static::STATUS_STOP === $statusXml && $price) { $status = Room::ROOM_STATUS_FULLY_BOOKED; - } elseif ($roomXml->attributes()['status'] === static::STATUS_ON_REQUEST) { + } elseif (static::STATUS_ON_REQUEST === $statusXml) { $status = Room::ROOM_STATUS_ON_REQUEST; } else { $status = Room::ROOM_STATUS_AVAILABLE;