mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge branch '3.1.x'
* 3.1.x: [ticket/13570] Remove unnecessary ternary condition from mysqli driver
This commit is contained in:
commit
978b96cbf5
1 changed files with 1 additions and 2 deletions
|
@ -34,8 +34,7 @@ class mysqli extends \phpbb\db\driver\mysql_base
|
|||
return $this->sql_error('');
|
||||
}
|
||||
|
||||
// Mysqli extension supports persistent connection since PHP 5.3.0
|
||||
$this->persistency = (version_compare(PHP_VERSION, '5.3.0', '>=')) ? $persistency : false;
|
||||
$this->persistency = $persistency;
|
||||
$this->user = $sqluser;
|
||||
|
||||
// If persistent connection, set dbhost to localhost when empty and prepend it with 'p:' prefix
|
||||
|
|
Loading…
Add table
Reference in a new issue