Skip to content

Commit

Permalink
Check another array key for existance
Browse files Browse the repository at this point in the history
  • Loading branch information
ipf committed Jan 8, 2025
1 parent 3119cad commit c7e303e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Service/SolrServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c7e303e

Please sign in to comment.