Skip to content
Snippets Groups Projects

account for...

Merged Rainer Friederich requested to merge issue/jsonapi_search_api-3403954:8.x-1.x into 8.x-1.x
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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);
}
Loading