diff options
author | Simo Leone <simo@archlinux.org> | 2008-02-19 09:30:49 +0100 |
---|---|---|
committer | Simo Leone <simo@archlinux.org> | 2008-03-23 09:04:16 +0100 |
commit | 9254804e1e471e385931da974393f18be1af0d14 (patch) | |
tree | c3d3715cc6ddbe2b14d35edf8dfebf484b50cd1d | |
parent | 196543a9e74474b4487d15f861f60401fe12ea24 (diff) | |
download | aur-9254804e1e471e385931da974393f18be1af0d14.tar.gz aur-9254804e1e471e385931da974393f18be1af0d14.tar.xz |
Fixed operator precendence in aurjson
My bad
Signed-off-by: Simo Leone <simo@archlinux.org>
-rw-r--r-- | web/lib/aurjson.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/aurjson.class.php b/web/lib/aurjson.class.php index 1d1b52d9..f358e64b 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); |