aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/db')
-rw-r--r--phpBB/includes/db/mysql4.php2
-rw-r--r--phpBB/includes/db/mysqli.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/db/mysql4.php b/phpBB/includes/db/mysql4.php
index cd1d7f9cf8..f3ee21fb70 100644
--- a/phpBB/includes/db/mysql4.php
+++ b/phpBB/includes/db/mysql4.php
@@ -49,7 +49,7 @@ class dbal_mysql4 extends dbal
{
if (@mysql_select_db($this->dbname))
{
- @mysql_query("SET NAMES 'utf8'");
+ @mysql_query("SET NAMES 'utf8'", $this->db_connect_id);
return $this->db_connect_id;
}
}
diff --git a/phpBB/includes/db/mysqli.php b/phpBB/includes/db/mysqli.php
index 554d9ddb60..550dca5d88 100644
--- a/phpBB/includes/db/mysqli.php
+++ b/phpBB/includes/db/mysqli.php
@@ -50,7 +50,7 @@ class dbal_mysqli extends dbal
{
if (@mysqli_select_db($this->db_connect_id, $this->dbname))
{
- @mysqli_query("SET NAMES 'utf8'");
+ @mysqli_query($this->db_connect_id, "SET NAMES 'utf8'");
return $this->db_connect_id;
}
}