From c7e303e68483c1a238fa3189146a61c914073b8e Mon Sep 17 00:00:00 2001 From: Ingo Pfennigstorf Date: Wed, 8 Jan 2025 10:48:20 +0100 Subject: [PATCH] Check another array key for existance --- Classes/Service/SolrServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Service/SolrServiceProvider.php b/Classes/Service/SolrServiceProvider.php index 1aed6b44..74e27442 100644 --- a/Classes/Service/SolrServiceProvider.php +++ b/Classes/Service/SolrServiceProvider.php @@ -295,7 +295,7 @@ protected function addFacetFilters(array $arguments): array // If facet.missing is active and facet is selected // set solr query to exclude all known facet values - if ($facetTerm === $facetInfo['config']['labelMissing']) { + if (array_key_exists('labelMissing', $facetInfo['config']) && $facetTerm === $facetInfo['config']['labelMissing']) { $this->query->createFilterQuery($queryInfo) ->setQuery('-'.str_replace('("%s")', '[* TO *]', $facetInfo['config']['query'])); } else {