From f23d2ec42fea8f22366e4ecd644fabcf4a36c5b0 Mon Sep 17 00:00:00 2001 From: Jakub Senko Date: Mon, 16 Feb 2015 20:25:11 +0100 Subject: [ticket/13570] Remove unnecessary ternary condition from mysqli driver PHPBB3-13570 --- phpBB/phpbb/db/driver/mysqli.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'phpBB/phpbb') diff --git a/phpBB/phpbb/db/driver/mysqli.php b/phpBB/phpbb/db/driver/mysqli.php index 2ed08211ad..c0ddfbf76c 100644 --- a/phpBB/phpbb/db/driver/mysqli.php +++ b/phpBB/phpbb/db/driver/mysqli.php @@ -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 -- cgit v1.2.1