aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/functions_sphinx.php8
-rw-r--r--phpBB/includes/search/fulltext_sphinx.php10
2 files changed, 9 insertions, 9 deletions
diff --git a/phpBB/includes/functions_sphinx.php b/phpBB/includes/functions_sphinx.php
index a4f0e41491..a93a1d950f 100644
--- a/phpBB/includes/functions_sphinx.php
+++ b/phpBB/includes/functions_sphinx.php
@@ -44,7 +44,7 @@ class sphinx_config
* @param string $name The name of the section that shall be returned
* @return sphinx_config_section The section object or null if none was found
*/
- function &get_section_by_name($name)
+ function get_section_by_name($name)
{
for ($i = 0, $size = sizeof($this->sections); $i < $size; $i++)
{
@@ -62,7 +62,7 @@ class sphinx_config
* @param string $name The name for the new section
* @return sphinx_config_section The newly created section object
*/
- function &add_section($name)
+ function add_section($name)
{
$this->sections[] = new sphinx_config_section($name, '');
return $this->sections[sizeof($this->sections) - 1];
@@ -345,7 +345,7 @@ class sphinx_config_section
* @return sphinx_config_section The first variable object from this section with the
* given name or null if none was found
*/
- function &get_variable_by_name($name)
+ function get_variable_by_name($name)
{
for ($i = 0, $size = sizeof($this->variables); $i < $size; $i++)
{
@@ -382,7 +382,7 @@ class sphinx_config_section
* @param string $value The value for the new variable
* @return sphinx_config_variable Variable object that was created
*/
- function &create_variable($name, $value)
+ function create_variable($name, $value)
{
$this->variables[] = new sphinx_config_variable($name, $value, '');
return $this->variables[sizeof($this->variables) - 1];
diff --git a/phpBB/includes/search/fulltext_sphinx.php b/phpBB/includes/search/fulltext_sphinx.php
index 2e263c1b55..477b1646fb 100644
--- a/phpBB/includes/search/fulltext_sphinx.php
+++ b/phpBB/includes/search/fulltext_sphinx.php
@@ -323,10 +323,10 @@ class phpbb_search_fulltext_sphinx
foreach ($config_data as $section_name => $section_data)
{
- $section = &$config_object->get_section_by_name($section_name);
+ $section = $config_object->get_section_by_name($section_name);
if (!$section)
{
- $section = &$config_object->add_section($section_name);
+ $section = $config_object->add_section($section_name);
}
foreach ($delete as $key => $void)
@@ -346,10 +346,10 @@ class phpbb_search_fulltext_sphinx
if (!isset($non_unique[$key]))
{
- $variable = &$section->get_variable_by_name($key);
+ $variable = $section->get_variable_by_name($key);
if (!$variable)
{
- $variable = &$section->create_variable($key, $value);
+ $variable = $section->create_variable($key, $value);
}
else
{
@@ -358,7 +358,7 @@ class phpbb_search_fulltext_sphinx
}
else
{
- $variable = &$section->create_variable($key, $value);
+ $variable = $section->create_variable($key, $value);
}
}
}