From af5f778747927b4dda8defb7553d3ee9ad048b8a Mon Sep 17 00:00:00 2001
From: e107steved <steved@e107.org>
Date: Tue, 3 Jul 2007 19:25:49 +0000
Subject: [PATCH] Bugtracker #4005 - add quotes in advanced search

---
 search.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/search.php b/search.php
index 4d0a2972a..3df11e8e5 100644
--- a/search.php
+++ b/search.php
@@ -11,8 +11,8 @@
 |     GNU General Public License (http://gnu.org).
 |
 |     $Source: /cvs_backup/e107_0.8/search.php,v $
-|     $Revision: 1.6 $
-|     $Date: 2007-05-18 21:14:52 $
+|     $Revision: 1.7 $
+|     $Date: 2007-07-03 19:25:49 $
 |     $Author: e107steved $
 +----------------------------------------------------------------------------+
 */
@@ -345,7 +345,7 @@ $SEARCH_TYPE_SEL = "<input type='radio' name='adv' value='0' ".($_GET['adv'] ? "
 
 foreach ($search_info as $key => $value) {
 	if (!isset($search_info[$key]['advanced'])) {
-		$js_adv .= " && abid != ".$key;
+		$js_adv .= " && abid != '".$key."'";
 	}
 }
 
@@ -356,7 +356,7 @@ if (isset($search_info[$_GET['t']]['advanced'])) {
 }
 
 if (check_class($search_prefs['google'])) {
-	$js_adv .= " && abid != ".$google_id;
+	$js_adv .= " && abid != '".$google_id."'";
 }
 
 if ($perform_search) {