From af759ff6ab5a15b912a4da64e13a28ed262f7800 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sun, 23 Nov 2014 09:52:17 +0100 Subject: [PATCH] Fix incorrect result for the !in operator fixes #7806 --- lib/config/expression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config/expression.cpp b/lib/config/expression.cpp index c058789f2..8d1e36c89 100644 --- a/lib/config/expression.cpp +++ b/lib/config/expression.cpp @@ -192,7 +192,7 @@ Value NotInExpression::DoEvaluate(VMFrame& frame, DebugHint *dhint) const Value right = m_Operand2->Evaluate(frame); if (right.IsEmpty()) - return false; + return true; else if (!right.IsObjectType()) BOOST_THROW_EXCEPTION(ConfigError("Invalid right side argument for 'in' operator: " + JsonEncode(right))); -- 2.40.0