diff options
author | Simo Leone <simo@archlinux.org> | 2008-02-19 02:30:49 -0600 |
---|---|---|
committer | Simo Leone <simo@archlinux.org> | 2008-03-23 03:04:16 -0500 |
commit | 9254804e1e471e385931da974393f18be1af0d14 (patch) | |
tree | c3d3715cc6ddbe2b14d35edf8dfebf484b50cd1d /web | |
parent | 196543a9e74474b4487d15f861f60401fe12ea24 (diff) | |
download | aurweb-9254804e1e471e385931da974393f18be1af0d14.tar.xz |
Fixed operator precendence in aurjson
My bad
Signed-off-by: Simo Leone <simo@archlinux.org>
Diffstat (limited to 'web')
-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 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); |