Commit c2799b0d authored by Pietro Saccardi's avatar Pietro Saccardi

Bugfix: correcting implementation of OR operator.

parent 2194e6c8
Pipeline #435 passed with stage
in 3 minutes and 10 seconds
......@@ -110,11 +110,11 @@ class OpOr extends ElementDefinition {
if (!is_bool($arg)) {
throw new InvalidExpressionException($elmInstance, 'Or called on non-boolean arguments.');
}
if (!$arg) {
return false;
if ($arg) {
return true;
}
}
return true;
return false;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment