diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2004-10-30 17:01:27 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2004-10-30 17:01:27 +0000 |
commit | 4683e23427c43a9b83d7f73f36118947a8ff289e (patch) | |
tree | e2c969a1815548276164dbaf55caea65f37ea9f6 | |
parent | 1a432006e3d7be20c02bd72a9fe85b63df51f496 (diff) | |
download | forums-4683e23427c43a9b83d7f73f36118947a8ff289e.tar forums-4683e23427c43a9b83d7f73f36118947a8ff289e.tar.gz forums-4683e23427c43a9b83d7f73f36118947a8ff289e.tar.bz2 forums-4683e23427c43a9b83d7f73f36118947a8ff289e.tar.xz forums-4683e23427c43a9b83d7f73f36118947a8ff289e.zip |
- fix stopword handling for searches in search results
git-svn-id: file:///svn/phpbb/trunk@5009 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/search.php | 8 |
1 files 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)) { |