diff options
author | Mate Bartus <mate.bartus@gmail.com> | 2015-07-09 21:52:36 +0200 |
---|---|---|
committer | Mate Bartus <mate.bartus@gmail.com> | 2015-07-09 21:52:36 +0200 |
commit | 4d2212a3c2c8528e6d2adde6c57090bf8e26ba7d (patch) | |
tree | 481753effff6f1c7d556cb3db3bc6496d0d4a6d9 | |
parent | 3309c89b05a46a03d09ffef693ed309699a3f59b (diff) | |
download | forums-4d2212a3c2c8528e6d2adde6c57090bf8e26ba7d.tar forums-4d2212a3c2c8528e6d2adde6c57090bf8e26ba7d.tar.gz forums-4d2212a3c2c8528e6d2adde6c57090bf8e26ba7d.tar.bz2 forums-4d2212a3c2c8528e6d2adde6c57090bf8e26ba7d.tar.xz forums-4d2212a3c2c8528e6d2adde6c57090bf8e26ba7d.zip |
[ticket/13740] Fix database version comparison
PHPBB3-13740
-rw-r--r-- | phpBB/phpbb/install/helper/database.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/phpbb/install/helper/database.php b/phpBB/phpbb/install/helper/database.php index d8751582f7..27cb2dc828 100644 --- a/phpBB/phpbb/install/helper/database.php +++ b/phpBB/phpbb/install/helper/database.php @@ -395,7 +395,7 @@ class database switch ($dbms) { case 'mysqli': - if (version_compare($db->sql_server_info(), '4.1.3', '<')) + if (version_compare($db->sql_server_info(true), '4.1.3', '<')) { $errors[] = array( 'title' => 'INST_ERR_DB_NO_MYSQLI', @@ -403,7 +403,7 @@ class database } break; case 'sqlite': - if (version_compare($db->sql_server_info(), '2.8.2', '<')) + if (version_compare($db->sql_server_info(true), '2.8.2', '<')) { $errors[] = array( 'title' => 'INST_ERR_DB_NO_SQLITE', @@ -411,7 +411,7 @@ class database } break; case 'sqlite3': - if (version_compare($db->sql_server_info(), '3.6.15', '<')) + if (version_compare($db->sql_server_info(true), '3.6.15', '<')) { $errors[] = array( 'title' => 'INST_ERR_DB_NO_SQLITE3', |