]> granicus.if.org Git - icinga2/commitdiff
Fix incorrect result for the !in operator
authorGunnar Beutner <gunnar.beutner@netways.de>
Sun, 23 Nov 2014 08:52:17 +0000 (09:52 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Sun, 23 Nov 2014 08:54:08 +0000 (09:54 +0100)
fixes #7806

lib/config/expression.cpp

index c058789f2e3657e81f5dd258f176aad4fe8f99c3..8d1e36c899150093e8e92ee2ace953f8b58c0e50 100644 (file)
@@ -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<Array>())
                BOOST_THROW_EXCEPTION(ConfigError("Invalid right side argument for 'in' operator: " + JsonEncode(right)));