Fix error on import caused by empty contingents
This commit is contained in:
@@ -180,7 +180,7 @@ class ContingentImportService implements SingletonInterface
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($xmlContingent->kapazitaeten === null) {
|
if (empty($xmlContingent->kapazitaeten)) {
|
||||||
$this->logger->warning('hotel has no contingents', ['code' => $hotelCode]);
|
$this->logger->warning('hotel has no contingents', ['code' => $hotelCode]);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user