diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-12-03 18:19:02 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-01-06 13:52:11 +0100 |
commit | f50ba9ab4f6e74e4d472c9e2012dfdd29720dfe9 (patch) | |
tree | 74e7b2e89c84cfa3d16c18be10afd99fd6af245c /phpBB/phpbb/search | |
parent | 73e6e5b77faadbb7676961bf38122d669de111db (diff) | |
download | forums-f50ba9ab4f6e74e4d472c9e2012dfdd29720dfe9.tar forums-f50ba9ab4f6e74e4d472c9e2012dfdd29720dfe9.tar.gz forums-f50ba9ab4f6e74e4d472c9e2012dfdd29720dfe9.tar.bz2 forums-f50ba9ab4f6e74e4d472c9e2012dfdd29720dfe9.tar.xz forums-f50ba9ab4f6e74e4d472c9e2012dfdd29720dfe9.zip |
[ticket/13454] Remove unused variables
This is part 2 of the pr.
PHPBB3-13454
Diffstat (limited to 'phpBB/phpbb/search')
-rw-r--r-- | phpBB/phpbb/search/fulltext_native.php | 3 | ||||
-rw-r--r-- | phpBB/phpbb/search/fulltext_sphinx.php | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/phpBB/phpbb/search/fulltext_native.php b/phpBB/phpbb/search/fulltext_native.php index 3a74955a18..a971b91b04 100644 --- a/phpBB/phpbb/search/fulltext_native.php +++ b/phpBB/phpbb/search/fulltext_native.php @@ -352,9 +352,6 @@ class fulltext_native extends \phpbb\search\base $this->must_not_contain_ids = array(); $this->must_exclude_one_ids = array(); - $mode = ''; - $ignore_no_id = true; - foreach ($query as $word) { if (empty($word)) diff --git a/phpBB/phpbb/search/fulltext_sphinx.php b/phpBB/phpbb/search/fulltext_sphinx.php index 372a2792cf..dfe878f0de 100644 --- a/phpBB/phpbb/search/fulltext_sphinx.php +++ b/phpBB/phpbb/search/fulltext_sphinx.php @@ -404,7 +404,7 @@ class fulltext_sphinx $variable = $section->get_variable_by_name($key); if (!$variable) { - $variable = $section->create_variable($key, $value); + $section->create_variable($key, $value); } else { @@ -413,7 +413,7 @@ class fulltext_sphinx } else { - $variable = $section->create_variable($key, $value); + $section->create_variable($key, $value); } } } @@ -437,7 +437,6 @@ class fulltext_sphinx $match = array('#\sand\s#i', '#\sor\s#i', '#\snot\s#i', '#\+#', '#-#', '#\|#', '#@#'); $replace = array(' & ', ' | ', ' - ', ' +', ' -', ' |', ''); - $replacements = 0; $keywords = preg_replace($match, $replace, $keywords); $this->sphinx->SetMatchMode(SPH_MATCH_EXTENDED); } |