[ticket/13570] Remove unnecessary ternary condition from mysqli driver

PHPBB3-13570
This commit is contained in:
Jakub Senko 2015-02-16 20:25:11 +01:00
parent 088907fe8e
commit f23d2ec42f

View file

@ -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