aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db
diff options
context:
space:
mode:
authorJakub Senko <jakubsenko@gmail.com>2015-02-16 20:25:11 +0100
committerJakub Senko <jakubsenko@gmail.com>2015-02-16 20:25:11 +0100
commitf23d2ec42fea8f22366e4ecd644fabcf4a36c5b0 (patch)
treebd8f9c221837eb718c0909ceb92c0881e9f4dffa /phpBB/phpbb/db
parent088907fe8e18f87f7af3098041ac031501aa1f7f (diff)
downloadforums-f23d2ec42fea8f22366e4ecd644fabcf4a36c5b0.tar
forums-f23d2ec42fea8f22366e4ecd644fabcf4a36c5b0.tar.gz
forums-f23d2ec42fea8f22366e4ecd644fabcf4a36c5b0.tar.bz2
forums-f23d2ec42fea8f22366e4ecd644fabcf4a36c5b0.tar.xz
forums-f23d2ec42fea8f22366e4ecd644fabcf4a36c5b0.zip
[ticket/13570] Remove unnecessary ternary condition from mysqli driver
PHPBB3-13570
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r--phpBB/phpbb/db/driver/mysqli.php3
1 files changed, 1 insertions, 2 deletions
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