mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-19 07:08:09 +01: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
@ -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))
|
||||
{
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user