From 2bd6ceadc27159b2c06572b379ad1c1ee6d9fa0e Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Sat, 17 Mar 2018 08:03:51 -0500 Subject: [PATCH] Fix query builder empty (#8408) --- LibreNMS/Alerting/QueryBuilderParser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LibreNMS/Alerting/QueryBuilderParser.php b/LibreNMS/Alerting/QueryBuilderParser.php index 9087f5e9dd..d786505c99 100644 --- a/LibreNMS/Alerting/QueryBuilderParser.php +++ b/LibreNMS/Alerting/QueryBuilderParser.php @@ -53,8 +53,8 @@ class QueryBuilderParser implements \JsonSerializable 'not_contains' => "NOT LIKE (\"%?%\")", 'ends_with' => "LIKE (\"?%\")", 'not_ends_with' => "NOT LIKE (\"?%\")", - 'is_empty' => "=''", - 'is_not_empty' => "!=''", + 'is_empty' => "=", // value will be empty + 'is_not_empty' => "!=", // value will be empty 'is_null' => "IS NULL", 'is_not_null' => "IS NOT NULL", 'regex' => 'REGEXP',