Commit dcd708d6 authored by git's avatar git Committed by borisson_

Issue #2895886 by arthur_lorenz: QueryString::buildUrls throws fatal error in...

Issue #2895886 by arthur_lorenz: QueryString::buildUrls throws fatal error in facets_system_breadcrumb_alter() when there are no active results
parent caba1e19
......@@ -300,7 +300,9 @@ function facets_system_breadcrumb_alter(Breadcrumb &$breadcrumb, RouteMatchInter
$active_results[$facet->getUrlAlias()][] = $cloned_result;
}
}
$url_processor->buildUrls($facet, $active_results[$facet->getUrlAlias()]);
if (!empty($active_results[$facet->getUrlAlias()])) {
$url_processor->buildUrls($facet, $active_results[$facet->getUrlAlias()]);
}
$active_facets[$facet->getUrlAlias()] = $facet;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment