From d147fa1d8f53fdf832c72129d5a1dc8211f33c98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Tue, 31 Aug 2021 16:23:53 +0200 Subject: [PATCH] Use proper operator --- .../ext/ep_products/Classes/Service/ContingentImportService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/typo3conf/ext/ep_products/Classes/Service/ContingentImportService.php b/public/typo3conf/ext/ep_products/Classes/Service/ContingentImportService.php index 36317548..7b2c2dbd 100644 --- a/public/typo3conf/ext/ep_products/Classes/Service/ContingentImportService.php +++ b/public/typo3conf/ext/ep_products/Classes/Service/ContingentImportService.php @@ -268,7 +268,7 @@ class ContingentImportService implements SingletonInterface, LoggerAwareInterfac if (in_array($roomCode, $this->ignoredRoomTypes, true)) { continue; } - $roomTypeBusProId = $roomType['link'] ?? $roomType['idBusPro']; + $roomTypeBusProId = $roomType['link'] ?: $roomType['idBusPro']; $xpath = sprintf('zimmerliste/zimmer[@idbuspro="%d"]', $roomTypeBusProId); $xmlRoom = $xmlDate->xpath($xpath)[0]; $this->calculateContingent($xmlRoom, $roomType, $date, $hotelData);