From 9254804e1e471e385931da974393f18be1af0d14 Mon Sep 17 00:00:00 2001 From: Simo Leone Date: Tue, 19 Feb 2008 02:30:49 -0600 Subject: Fixed operator precendence in aurjson My bad Signed-off-by: Simo Leone --- web/lib/aurjson.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/lib/aurjson.class.php b/web/lib/aurjson.class.php index 1d1b52d..f358e64 100644 --- a/web/lib/aurjson.class.php +++ b/web/lib/aurjson.class.php @@ -84,7 +84,7 @@ class AurJSON { private function search($keyword_string) { $keyword_string = mysql_real_escape_string($keyword_string, $this->dbh); $query = sprintf( - "SELECT Name,ID FROM Packages WHERE Name LIKE '%%%s%%' OR Description LIKE '%%%s%%' AND DummyPkg=0", + "SELECT Name,ID FROM Packages WHERE ( Name LIKE '%%%s%%' OR Description LIKE '%%%s%%' ) AND DummyPkg=0", $keyword_string, $keyword_string ); $result = db_query($query, $this->dbh); -- cgit v1.2.3-70-g09d2