[feature/sphinx-fulltext-search] remove unused arrays

PHPBB3-10946
This commit is contained in:
Dhruv Goel 2012-07-01 03:17:45 +05:30 committed by Dhruv
parent 4a11a7b970
commit 06eeed058d

View file

@ -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)