1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-17 22:28:46 +01:00

Fixed error reporting

git-svn-id: file:///svn/phpbb/trunk@43 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2001-02-24 12:08:53 +00:00
parent 05bb6c1fff
commit 9f5ffef337

View File

@ -319,12 +319,8 @@ class sql_db
}
function sql_error($query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
$result[message] = @mysql_error($query_id);
$result[code] = @mysql_errno($query_id);
$result["message"] = @mysql_error($this->db_connect_id);
$result["code"] = @mysql_errno($this->db_connect_id);
return $result;
}