Skip to content

Commit

Permalink
Fix incorrect result for the !in operator
Browse files Browse the repository at this point in the history
fixes #7806
  • Loading branch information
gunnarbeutner committed Nov 23, 2014
1 parent 6738b78 commit 408f54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/config/expression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ Value NotInExpression::DoEvaluate(const Object::Ptr& context, DebugHint *dhint)
Value right = m_Operand2->Evaluate(context);

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)));

Expand Down

0 comments on commit 408f54c

Please sign in to comment.