Commit c2799b0d authored by Pietro Saccardi's avatar Pietro Saccardi
Browse files

Bugfix: correcting implementation of OR operator.

parent 2194e6c8
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;
    }
}