]> git.joonet.de Git - adminer.git/commitdiff
Fix min_version use
authorJakub Vrana <jakub@vrana.cz>
Tue, 30 Jan 2018 15:42:13 +0000 (16:42 +0100)
committerJakub Vrana <jakub@vrana.cz>
Tue, 30 Jan 2018 15:42:13 +0000 (16:42 +0100)
adminer/drivers/mysql.inc.php

index 5adbac8376b6ab9a657c944ac0f1c951821ff605..cbeda2c897273b2e57cec8289605745deecd68ef 100644 (file)
@@ -307,7 +307,7 @@ if (!defined("DRIVER")) {
                if ($connection->connect($credentials[0], $credentials[1], $credentials[2])) {
                        $connection->set_charset(charset($connection)); // available in MySQLi since PHP 5.0.5
                        $connection->query("SET sql_quote_show_create = 1, autocommit = 1");
-                       if (min_version('5.7.8', 10.2, $connection) >= 0) {
+                       if (min_version('5.7.8', 10.2, $connection)) {
                                $structured_types[lang('Strings')][] = "json";
                                $types["json"] = 4294967295;
                        }