[ticket/12570] Fix MySQLi affectedrows by specifying MYSQLI_CLIENT_FOUND_ROWS

PHPBB3-12570
This commit is contained in:
Joas Schilling 2014-05-23 16:12:22 +02:00
parent 15516bd078
commit b92eac71e4

View file

@ -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 != '') if ($this->db_connect_id && $this->dbname != '')
{ {