- Issue created by @stefdewa
An object attribute $view->filter
is used as the array in a foreach without checking if it is set. This resulted in the warning:
Warning: foreach() argument must be of type array|object, null given in facets_exposed_filters_search_api_query_alter() (line 49 of modules/contrib/facets/modules/facets_exposed_filters/facets_exposed_filters.module).
On line 49 you find
foreach ($view->filter as $filter) {
Add ?? operator to make sure the foreach has an array.
Active
3.0
Code