From 9f5ffef337a3dcc295e29305d99d33ffc29b6385 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sat, 24 Feb 2001 12:08:53 +0000 Subject: Fixed error reporting git-svn-id: file:///svn/phpbb/trunk@43 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/db/mysql.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'phpBB/db') diff --git a/phpBB/db/mysql.php b/phpBB/db/mysql.php index e0a95773f4..ec64731a68 100644 --- a/phpBB/db/mysql.php +++ b/phpBB/db/mysql.php @@ -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; } -- cgit v1.2.1