Merge branch '3.1.x'

* 3.1.x:
  [ticket/13570] Remove unnecessary ternary condition from mysqli driver
This commit is contained in:
Andreas Fischer 2015-02-17 22:24:15 +01:00
commit 978b96cbf5

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