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 e735e92 commit 3119cad
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 @@ -289,7 +289,7 @@ protected function addFacetFilters(array $arguments): array
// Do not add it otherwise as the additional {!tag …} prepended to the Solr query
// will break usage of {!join …} in the query.
$queryInfo = ['key' => 'facet-'.$facetID.'-'.$facetTerm];
if ($facetInfo['config']['excludeOwnFilter'] && $facetQuery) {
if (array_key_exists('excludeOwnFilter', $facetInfo['config']) && $facetInfo['config']['excludeOwnFilter'] && $facetQuery) {
$queryInfo['tag'] = $this->tagForFacet($facetID);
}

Expand Down

0 comments on commit 3119cad

Please sign in to comment.