diff --git a/base.php b/base.php index d8dc786..e6e44be 100644 --- a/base.php +++ b/base.php @@ -408,7 +408,7 @@ function matches_comparing_expression($expr, $text) { $result = str_replace('OR', '|', $result); $result = str_replace('AND', '&', $result); eval('$result = '.$result.';'); - return $result === 0 ? false : true; + return in_array($result, [0,false]) ? false : true; } function content_cache__exists($key) {