phpBB

Code Changes

File: includes/acp/acp_database.php

  Unmodified   Added   Modified   Removed
Line 59Line 59
						$format	= $request->variable('method', '');
$where = $request->variable('where', '');


						$format	= $request->variable('method', '');
$where = $request->variable('where', '');


						if (!sizeof($table))

						if (!count($table))

						{
trigger_error($user->lang['TABLE_SELECT_ERROR'] . adm_back_link($this->u_action), E_USER_WARNING);
}

						{
trigger_error($user->lang['TABLE_SELECT_ERROR'] . adm_back_link($this->u_action), E_USER_WARNING);
}

Line 495Line 495
		{
$val[] = "'" . $value . "'";
}

		{
$val[] = "'" . $value . "'";
}

		if (sizeof($matches[0]))

		if (count($matches[0]))

		{
$val[] = 'char(' . ord(array_shift($matches[0])) . ')';
}

		{
$val[] = 'char(' . ord(array_shift($matches[0])) . ')';
}

Line 519Line 519
		{
$val[] = "'" . $value . "'";
}

		{
$val[] = "'" . $value . "'";
}

		if (sizeof($matches[0]))

		if (count($matches[0]))

		{
$val[] = 'chr(' . ord(array_shift($matches[0])) . ')';
}

		{
$val[] = 'chr(' . ord(array_shift($matches[0])) . ')';
}

Line 541Line 541
		{
$val[] = "'" . $value . "'";
}

		{
$val[] = "'" . $value . "'";
}

		if (sizeof($matches[0]))

		if (count($matches[0]))

		{
$val[] = "'" . array_shift($matches[0]) . "'";
}

		{
$val[] = "'" . array_shift($matches[0]) . "'";
}

Line 583Line 583
	static $array = array();
static $record = '';


	static $array = array();
static $record = '';


	if (!sizeof($array))

	if (!count($array))

	{
while (!$eof($fp))
{

	{
while (!$eof($fp))
{

Line 605Line 605
		}
}


		}
}


	if (sizeof($array))

	if (count($array))

	{
return array_shift($array);
}

	{
return array_shift($array);
}