phpBB

Code Changes

File: phpbb/search/sphinx/config_section.php

  Unmodified   Added   Modified   Removed
Line 87Line 87
	*/
function get_variable_by_name($name)
{

	*/
function get_variable_by_name($name)
{

		for ($i = 0, $size = sizeof($this->variables); $i < $size; $i++)

		for ($i = 0, $size = count($this->variables); $i < $size; $i++)

		{
// Make sure this is a variable object and not a comment
if (($this->variables[$i] instanceof \phpbb\search\sphinx\config_variable) && $this->variables[$i]->get_name() == $name)

		{
// Make sure this is a variable object and not a comment
if (($this->variables[$i] instanceof \phpbb\search\sphinx\config_variable) && $this->variables[$i]->get_name() == $name)

Line 106Line 106
	*/
function delete_variables_by_name($name)
{

	*/
function delete_variables_by_name($name)
{

		for ($i = 0, $size = sizeof($this->variables); $i < $size; $i++)

		for ($i = 0, $size = count($this->variables); $i < $size; $i++)

		{
// Make sure this is a variable object and not a comment
if (($this->variables[$i] instanceof \phpbb\search\sphinx\config_variable) && $this->variables[$i]->get_name() == $name)

		{
// Make sure this is a variable object and not a comment
if (($this->variables[$i] instanceof \phpbb\search\sphinx\config_variable) && $this->variables[$i]->get_name() == $name)

Line 129Line 129
	function create_variable($name, $value)
{
$this->variables[] = new \phpbb\search\sphinx\config_variable($name, $value, '');

	function create_variable($name, $value)
{
$this->variables[] = new \phpbb\search\sphinx\config_variable($name, $value, '');

		return $this->variables[sizeof($this->variables) - 1];

		return $this->variables[count($this->variables) - 1];

	}

/**

	}

/**