summaryrefslogtreecommitdiffstats
path: root/web/lib/aurjson.class.php
diff options
context:
space:
mode:
authorSimo Leone <simo@archlinux.org>2008-02-19 02:30:49 -0600
committerSimo Leone <simo@archlinux.org>2008-03-23 03:04:16 -0500
commit9254804e1e471e385931da974393f18be1af0d14 (patch)
treec3d3715cc6ddbe2b14d35edf8dfebf484b50cd1d /web/lib/aurjson.class.php
parent196543a9e74474b4487d15f861f60401fe12ea24 (diff)
downloadaurweb-9254804e1e471e385931da974393f18be1af0d14.tar.xz
Fixed operator precendence in aurjson
My bad Signed-off-by: Simo Leone <simo@archlinux.org>
Diffstat (limited to 'web/lib/aurjson.class.php')
-rw-r--r--web/lib/aurjson.class.php2
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);