From 4683e23427c43a9b83d7f73f36118947a8ff289e Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sat, 30 Oct 2004 17:01:27 +0000 Subject: [PATCH] - fix stopword handling for searches in search results git-svn-id: file:///svn/phpbb/trunk@5009 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/search.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/phpBB/search.php b/phpBB/search.php index 45ccba3557..ac3226372c 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -252,7 +252,7 @@ if ($search_keywords || $search_author || $search_id) { $$var = array_shift($data); } - + $sql_where = (($show_results == 'posts') ? 'p.post_id' : 't.topic_id') . ' IN (' . implode(', ', $data) . ')'; unset($data); } @@ -318,8 +318,12 @@ if ($search_keywords || $search_author || $search_id) } } + if (isset($old_split_words) && sizeof($old_split_words)) + { + $split_words = (sizeof($split_words)) ? array_diff($split_words, $old_split_words) : $old_split_words; + } - if (sizeof($split_words) && array_diff($split_words, $old_split_words)) + if (sizeof($split_words)) {