From a0b8829f8191309f3915f9ac4455244ff5e98784 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 12 Sep 2022 08:53:08 +0200 Subject: [PATCH] FilterExpression: Perform a null check if `*` --- library/Icinga/Data/Filter/FilterExpression.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/Icinga/Data/Filter/FilterExpression.php b/library/Icinga/Data/Filter/FilterExpression.php index 73fb62536c..6a9a880955 100644 --- a/library/Icinga/Data/Filter/FilterExpression.php +++ b/library/Icinga/Data/Filter/FilterExpression.php @@ -173,6 +173,10 @@ public function matches($row) return false; } + if (trim($this->expression) === '*') { + return $rowValue !== null; + } + if ($this->caseSensitive) { $expression = $this->expression; } else {