Commit 9ffbc0bd40ea86f112e8681fdb4dc3af1f37725d

Authored by conradverm
1 parent 82fafc10

KTS-673

"The search algorithm needs some work"
Updated. Negative results not displayed correctly.

Committed By: Conrad Vermeulen
Reviewed By: Kevin Fourie

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7522 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 4 additions and 0 deletions
search2/search/expr.inc.php
@@ -1646,6 +1646,10 @@ class OpExpr extends Expr @@ -1646,6 +1646,10 @@ class OpExpr extends Expr
1646 1646
1647 if (is_null($this->parent)) 1647 if (is_null($this->parent))
1648 { 1648 {
  1649 + if ($this->not())
  1650 + {
  1651 + $expr = "NOT $expr";
  1652 + }
1649 return $expr; 1653 return $expr;
1650 } 1654 }
1651 1655