Use proper operator

This commit is contained in:
Björn Fromme
2021-08-31 16:23:53 +02:00
parent 349b82d6e6
commit d252471900
@@ -263,7 +263,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);