From b25acec27700e17050ce9c8e22c2f35619be37be Mon Sep 17 00:00:00 2001 From: Jonathan Ernst Date: Wed, 23 Feb 2005 00:14:56 +0000 Subject: [PATCH] Search was returning queued apps if they contained keywords --- search.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/search.php b/search.php index c9125aa..20a5d8d 100644 --- a/search.php +++ b/search.php @@ -14,8 +14,8 @@ $sQuery = "SELECT * FROM appFamily WHERE appName != 'NONAME' AND queued = 'false' - AND appName LIKE '%".addslashes($_REQUEST['q'])."%' - OR keywords LIKE '%".addslashes($_REQUEST['q'])."%' + AND (appName LIKE '%".addslashes($_REQUEST['q'])."%' + OR keywords LIKE '%".addslashes($_REQUEST['q'])."%') ORDER BY appName"; $hResult = query_appdb($sQuery);