Use proper operator
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user