From a37185b170e12b1f7787f62acf1b72b80b7f2b23 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 23 Apr 2017 14:17:51 -0700 Subject: [PATCH] Fix code that detects support for mysql.hosts table https://sourceforge.net/p/webadmin/bugs/4945/ --- mysql/mysql-lib.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql/mysql-lib.pl b/mysql/mysql-lib.pl index c7e511912..fa3d25c0a 100755 --- a/mysql/mysql-lib.pl +++ b/mysql/mysql-lib.pl @@ -697,7 +697,7 @@ else { # Returns 1 if the hosts table exists sub supports_hosts { -return $mysql_version <= 5.7 ? 1 : +return $mysql_version < 5.7 ? 1 : $mysql_version =~ /^5\.7\.(\d+)/ && $1 < 16 ? 1 : 0; }