Commit 92d8ecc9 authored by michaellenahan's avatar michaellenahan Committed by borisson_

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

parent c8414fd5
......@@ -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;
......
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