aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/driver/mysqli.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-05-23 16:12:22 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-05-26 21:43:38 +0200
commitb92eac71e49f184d1fe451a8b1b1d396768c6fb7 (patch)
tree3cbcf4060bf260ebad8163373e5b0eaed1dfdf36 /phpBB/phpbb/db/driver/mysqli.php
parent15516bd07853cbda585f1716ce1b614d43cf9d9a (diff)
downloadforums-b92eac71e49f184d1fe451a8b1b1d396768c6fb7.tar
forums-b92eac71e49f184d1fe451a8b1b1d396768c6fb7.tar.gz
forums-b92eac71e49f184d1fe451a8b1b1d396768c6fb7.tar.bz2
forums-b92eac71e49f184d1fe451a8b1b1d396768c6fb7.tar.xz
forums-b92eac71e49f184d1fe451a8b1b1d396768c6fb7.zip
[ticket/12570] Fix MySQLi affectedrows by specifying MYSQLI_CLIENT_FOUND_ROWS
PHPBB3-12570
Diffstat (limited to 'phpBB/phpbb/db/driver/mysqli.php')
-rw-r--r--phpBB/phpbb/db/driver/mysqli.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/phpbb/db/driver/mysqli.php b/phpBB/phpbb/db/driver/mysqli.php
index 6814599b24..a0df7599f8 100644
--- a/phpBB/phpbb/db/driver/mysqli.php
+++ b/phpBB/phpbb/db/driver/mysqli.php
@@ -57,7 +57,8 @@ class mysqli extends \phpbb\db\driver\mysql_base
}
}
- $this->db_connect_id = @mysqli_connect($this->server, $this->user, $sqlpassword, $this->dbname, $port, $socket);
+ $this->db_connect_id = @mysqli_init();
+ $this->db_connect_id->real_connect($this->server, $this->user, $sqlpassword, $this->dbname, $port, $socket, MYSQLI_CLIENT_FOUND_ROWS);
if ($this->db_connect_id && $this->dbname != '')
{