diff --git a/search2/search/expr.inc.php b/search2/search/expr.inc.php index 16f57be..4d6a6f8 100755 --- a/search2/search/expr.inc.php +++ b/search2/search/expr.inc.php @@ -1646,6 +1646,10 @@ class OpExpr extends Expr if (is_null($this->parent)) { + if ($this->not()) + { + $expr = "NOT $expr"; + } return $expr; }