From aff4f4ac2353858a4c48599f7484cd21190e4599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Tue, 20 Nov 2018 11:36:56 +0100 Subject: [PATCH] Fix error on import caused by empty contingents --- .../ext/ep_products/Classes/Service/ContingentImportService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/typo3conf/ext/ep_products/Classes/Service/ContingentImportService.php b/web/typo3conf/ext/ep_products/Classes/Service/ContingentImportService.php index 3cb4a760..356a43d8 100644 --- a/web/typo3conf/ext/ep_products/Classes/Service/ContingentImportService.php +++ b/web/typo3conf/ext/ep_products/Classes/Service/ContingentImportService.php @@ -180,7 +180,7 @@ class ContingentImportService implements SingletonInterface return 0; } - if ($xmlContingent->kapazitaeten === null) { + if (empty($xmlContingent->kapazitaeten)) { $this->logger->warning('hotel has no contingents', ['code' => $hotelCode]); return 0; }