mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/sphinx-fulltext-search] remove unused arrays
PHPBB3-10946
This commit is contained in:
parent
4a11a7b970
commit
06eeed058d
1 changed files with 1 additions and 8 deletions
|
@ -395,14 +395,7 @@ class phpbb_search_fulltext_sphinx
|
||||||
$this->sphinx->SetMatchMode(SPH_MATCH_ANY);
|
$this->sphinx->SetMatchMode(SPH_MATCH_ANY);
|
||||||
}
|
}
|
||||||
|
|
||||||
$match = array();
|
// Keep quotes and new lines
|
||||||
// Keep quotes
|
|
||||||
$match[] = "#"#";
|
|
||||||
// KeepNew lines
|
|
||||||
$match[] = "#[\n]+#";
|
|
||||||
|
|
||||||
$replace = array('"', " ");
|
|
||||||
|
|
||||||
$keywords = str_replace(array('"', "\n"), array('"', ' '), trim($keywords));
|
$keywords = str_replace(array('"', "\n"), array('"', ' '), trim($keywords));
|
||||||
|
|
||||||
if (strlen($keywords) > 0)
|
if (strlen($keywords) > 0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue