aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/db
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-02-24 12:08:53 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-02-24 12:08:53 +0000
commit9f5ffef337a3dcc295e29305d99d33ffc29b6385 (patch)
tree55921dfb2bc884e527ca6ee36320ef9bff3eb5aa /phpBB/db
parent05bb6c1fffb1e8df8827de1bbf3806e312191b60 (diff)
downloadforums-9f5ffef337a3dcc295e29305d99d33ffc29b6385.tar
forums-9f5ffef337a3dcc295e29305d99d33ffc29b6385.tar.gz
forums-9f5ffef337a3dcc295e29305d99d33ffc29b6385.tar.bz2
forums-9f5ffef337a3dcc295e29305d99d33ffc29b6385.tar.xz
forums-9f5ffef337a3dcc295e29305d99d33ffc29b6385.zip
Fixed error reporting
git-svn-id: file:///svn/phpbb/trunk@43 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/db')
-rw-r--r--phpBB/db/mysql.php8
1 files changed, 2 insertions, 6 deletions
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;
}