mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 12:58:52 +00:00
[ticket/13570] Remove unnecessary ternary condition from mysqli driver
PHPBB3-13570
This commit is contained in:
parent
088907fe8e
commit
f23d2ec42f
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('');
|
return $this->sql_error('');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mysqli extension supports persistent connection since PHP 5.3.0
|
$this->persistency = $persistency;
|
||||||
$this->persistency = (version_compare(PHP_VERSION, '5.3.0', '>=')) ? $persistency : false;
|
|
||||||
$this->user = $sqluser;
|
$this->user = $sqluser;
|
||||||
|
|
||||||
// If persistent connection, set dbhost to localhost when empty and prepend it with 'p:' prefix
|
// If persistent connection, set dbhost to localhost when empty and prepend it with 'p:' prefix
|
||||||
|
|
Loading…
Add table
Reference in a new issue