mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-15 14:16:28 +02:00
Fixed error reporting
git-svn-id: file:///svn/phpbb/trunk@43 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@ -319,12 +319,8 @@ class sql_db
|
|||||||
}
|
}
|
||||||
function sql_error($query_id = 0)
|
function sql_error($query_id = 0)
|
||||||
{
|
{
|
||||||
if(!$query_id)
|
$result["message"] = @mysql_error($this->db_connect_id);
|
||||||
{
|
$result["code"] = @mysql_errno($this->db_connect_id);
|
||||||
$query_id = $this->query_result;
|
|
||||||
}
|
|
||||||
$result[message] = @mysql_error($query_id);
|
|
||||||
$result[code] = @mysql_errno($query_id);
|
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user