mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
DbConnection: Replicate the fix for #9211
This commit is contained in:
parent
f3124ffd59
commit
54354b17bf
@ -397,12 +397,16 @@ class DbConnection implements Selectable, Extensible, Updatable, Reducible
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (! empty($parts)) {
|
||||||
if ($level > 0) {
|
if ($level > 0) {
|
||||||
$where .= ' (' . implode($operator, $parts) . ') ';
|
$where .= ' (' . implode($operator, $parts) . ') ';
|
||||||
} else {
|
} else {
|
||||||
$where .= implode($operator, $parts);
|
$where .= implode($operator, $parts);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
return ''; // Explicitly return the empty string due to the FilterNot case
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$where .= $this->renderFilterExpression($filter);
|
$where .= $this->renderFilterExpression($filter);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user