Skip to content
Snippets Groups Projects
Commit 660a6543 authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

Greater fault tolerance.

parent 97ecf470
No related merge requests found
......@@ -1800,12 +1800,12 @@ class Params
$retVal = false;
// If the section is in reverse order, the tilde will flag this:
if (substr($facetList, 0, 1) == '~') {
foreach ($config->{substr($facetList, 1)} as $value => $key) {
foreach ($config->{substr($facetList, 1)} ?? [] as $value => $key) {
$this->addCheckboxFacet($key, $value);
$retVal = true;
}
} else {
foreach ($config->$facetList as $key => $value) {
foreach ($config->$facetList ?? [] as $key => $value) {
$this->addCheckboxFacet($key, $value);
$retVal = true;
}
......
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