Skip to content
Snippets Groups Projects
Commit 92d8ecc9 authored by Michael Lenahan's avatar Michael Lenahan Committed by Joris Vercammen
Browse files

Issue #3012047 by michaellenahan: Undetected facets should not cause a PHP Exception

parent c8414fd5
No related branches found
No related merge requests found
......@@ -48,6 +48,10 @@ class RangeSliderProcessor extends SliderProcessor implements PreQueryProcessorI
$url_processor = $url_processor_handler->getProcessor();
$active_filters = $url_processor->getActiveFilters();
if (isset($active_filters[''])) {
unset($active_filters['']);
}
/** @var \Drupal\facets\Result\ResultInterface[] $results */
foreach ($results as &$result) {
$new_active_filters = $active_filters;
......
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