Skip to content
Snippets Groups Projects
Commit b87745dd authored by Rainer Friederich's avatar Rainer Friederich Committed by Jonathan Sacksick
Browse files

Issue #3403954 by yobottehg: Adapt to the new empty results empty facet behaviour of facets

parent 875f9260
No related branches found
No related tags found
1 merge request!8account for...
Pipeline #445364 failed
......@@ -79,7 +79,7 @@ class AddSearchMetaEventSubscriber implements EventSubscriberInterface {
// If there are no results, the facet manager adds empty behavior render
// array data. We need to strip that out.
if (count($facet->getResults()) === 0) {
if (is_array($facet_data) && count($facet->getResults()) === 0) {
$facet_data = reset($facet_data);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment