From 0e8e0b65046b182a2ece142167cdbb12104ccb11 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Tue, 28 Feb 2006 18:15:38 +0000 Subject: [PATCH] CVS commit mail test git-svn-id: file:///svn/phpbb/trunk@5593 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/search/fulltext_mysql.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/phpBB/includes/search/fulltext_mysql.php b/phpBB/includes/search/fulltext_mysql.php index 7ad156a60d..795772d626 100644 --- a/phpBB/includes/search/fulltext_mysql.php +++ b/phpBB/includes/search/fulltext_mysql.php @@ -133,7 +133,6 @@ class fulltext_mysql extends search_backend if (sizeof($this->ignore_words)) { - $stopped_words = array_intersect($text, $this->ignore_words); $text = array_diff($text, $this->ignore_words); } @@ -295,7 +294,7 @@ class fulltext_mysql extends search_backend $any_words = (sizeof($any_words)) ? ' +(' . implode(' ', $any_words) . ')' : ''; $sql = "SELECT $sql_select FROM $sql_from$sql_sort_table" . POSTS_TABLE . " p - WHERE MATCH ($sql_match) AGAINST ('" . implode(' ', $words) . $any_words . "' IN BOOLEAN MODE) + WHERE MATCH ($sql_match) AGAINST ('" . $db->sql_escape(implode(' ', $words)) . $any_words . "' IN BOOLEAN MODE) $sql_where_options ORDER BY $sql_sort"; $result = $db->sql_query_limit($sql, $config['search_block_size'], $start);