mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 11:28:55 +00:00
Fixed error reporting
git-svn-id: file:///svn/phpbb/trunk@43 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
05bb6c1fff
commit
9f5ffef337
1 changed files with 2 additions and 6 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue