aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/search/fulltext_sphinx.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-12-03 18:19:02 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-01-06 13:52:11 +0100
commitf50ba9ab4f6e74e4d472c9e2012dfdd29720dfe9 (patch)
tree74e7b2e89c84cfa3d16c18be10afd99fd6af245c /phpBB/phpbb/search/fulltext_sphinx.php
parent73e6e5b77faadbb7676961bf38122d669de111db (diff)
downloadforums-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/fulltext_sphinx.php')
-rw-r--r--phpBB/phpbb/search/fulltext_sphinx.php5
1 files changed, 2 insertions, 3 deletions
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);
}