mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 22:38:52 +00:00
- fix stopword handling for searches in search results
git-svn-id: file:///svn/phpbb/trunk@5009 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
1a432006e3
commit
4683e23427
1 changed files with 6 additions and 2 deletions
|
@ -252,7 +252,7 @@ if ($search_keywords || $search_author || $search_id)
|
||||||
{
|
{
|
||||||
$$var = array_shift($data);
|
$$var = array_shift($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql_where = (($show_results == 'posts') ? 'p.post_id' : 't.topic_id') . ' IN (' . implode(', ', $data) . ')';
|
$sql_where = (($show_results == 'posts') ? 'p.post_id' : 't.topic_id') . ' IN (' . implode(', ', $data) . ')';
|
||||||
unset($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))
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue