From a2cc1baf0904b3414127ced01ac10ae500789c15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Sun, 29 May 2022 12:26:41 +0200 Subject: [PATCH] Avoid type error --- .../Classes/Domain/Repository/AbstractRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/typo3conf/ext/ep_products/Classes/Domain/Repository/AbstractRepository.php b/public/typo3conf/ext/ep_products/Classes/Domain/Repository/AbstractRepository.php index 10c6a9b8..41df34f1 100644 --- a/public/typo3conf/ext/ep_products/Classes/Domain/Repository/AbstractRepository.php +++ b/public/typo3conf/ext/ep_products/Classes/Domain/Repository/AbstractRepository.php @@ -114,7 +114,7 @@ abstract class AbstractRepository extends Repository { foreach (['city', 'region', 'country'] as $column) { $key = $column . 'Uids'; - if (count($filterSettings[$key]) > 0) { + if (isset($filterSettings[$key]) && is_array($filterSettings[$key]) && count($filterSettings[$key]) > 0) { $qb->andWhere($qb->expr()->in( 'date.' . $column, $qb->createNamedParameter($filterSettings[$key], Connection::PARAM_INT_ARRAY)