aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/db')
-rw-r--r--phpBB/includes/db/mysql.php4
-rw-r--r--phpBB/includes/db/mysql4.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/db/mysql.php b/phpBB/includes/db/mysql.php
index 182ed52fdd..57aad449d4 100644
--- a/phpBB/includes/db/mysql.php
+++ b/phpBB/includes/db/mysql.php
@@ -286,8 +286,8 @@ class dbal_mysql extends dbal
function _sql_error()
{
return array(
- 'message' => @mysql_error(),
- 'code' => @mysql_errno()
+ 'message' => @mysql_error($this->db_connect_id),
+ 'code' => @mysql_errno($this->db_connect_id)
);
}
diff --git a/phpBB/includes/db/mysql4.php b/phpBB/includes/db/mysql4.php
index 143996a028..9db47f37ee 100644
--- a/phpBB/includes/db/mysql4.php
+++ b/phpBB/includes/db/mysql4.php
@@ -289,8 +289,8 @@ class dbal_mysql4 extends dbal
function _sql_error()
{
return array(
- 'message' => @mysql_error(),
- 'code' => @mysql_errno()
+ 'message' => @mysql_error($this->db_connect_id),
+ 'code' => @mysql_errno($this->db_connect_id)
);
}