mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/12570] Fix MySQLi affectedrows by specifying MYSQLI_CLIENT_FOUND_ROWS
PHPBB3-12570
This commit is contained in:
parent
15516bd078
commit
b92eac71e4
1 changed files with 2 additions and 1 deletions
|
@ -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 != '')
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue