From c3b127ada9f9ca8dff39c6db9fd03a3e20e382c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Thu, 1 Oct 2020 10:44:20 +0200 Subject: [PATCH] Avoid empty hotel categories --- .../typo3conf/ext/ep_products/Classes/Service/DateService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/typo3conf/ext/ep_products/Classes/Service/DateService.php b/public/typo3conf/ext/ep_products/Classes/Service/DateService.php index c780863f..fe64ba45 100644 --- a/public/typo3conf/ext/ep_products/Classes/Service/DateService.php +++ b/public/typo3conf/ext/ep_products/Classes/Service/DateService.php @@ -420,7 +420,7 @@ class DateService implements SingletonInterface if (!$row['hotelShowAsTeaser']) { continue; } - $categoryUid = $row['hotelCategory']; + $categoryUid = $row['hotelCategory'] ?? Hotel::CATEGORY_STANDARD; $hotelUid = $row['hotelUid']; $hotelUri = $this->uriBuilder ->reset()