1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 12:03:21 +01:00
git-svn-id: file:///svn/phpbb/trunk@7985 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2007-07-30 21:15:55 +00:00
parent 6aaf8d1ad7
commit 03efc190e9

View File

@ -1547,8 +1547,6 @@ function _sql($sql, &$errored, &$error_ary, $echo_dot = true)
$db->sql_return_on_error(true);
if (preg_match('/^\\s*SELECT/', $sql))
{
$result = $db->sql_query($sql);
if ($db->sql_error_triggered)
{
@ -1556,11 +1554,6 @@ function _sql($sql, &$errored, &$error_ary, $echo_dot = true)
$error_ary['sql'][] = $db->sql_error_sql;
$error_ary['error_code'][] = $db->_sql_error();
}
}
else
{
var_dump($sql);
}
$db->sql_return_on_error(false);
@ -1569,7 +1562,7 @@ function _sql($sql, &$errored, &$error_ary, $echo_dot = true)
echo ". \n";
flush();
}
if (preg_match('/^\\s*SELECT/', $sql))
return $result;
}