From 47f5a9df119d14db20e2c3278f1cabea6e539fae Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Thu, 24 May 2018 13:42:32 +0200 Subject: [PATCH] [UPDATE] Only check for wrong mode string in MySQL 5.7 --- include/pages/admin/checks/check_mysql_version.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pages/admin/checks/check_mysql_version.inc.php b/include/pages/admin/checks/check_mysql_version.inc.php index 2d8fd520..063ce371 100644 --- a/include/pages/admin/checks/check_mysql_version.inc.php +++ b/include/pages/admin/checks/check_mysql_version.inc.php @@ -8,7 +8,7 @@ $mysql_version = $mysqli->query('SELECT VERSION() AS version')->fetch_object()-> $mysql_mode = $mysqli->query('SELECT @@GLOBAL.sql_mode AS sql_mode')->fetch_object()->sql_mode; // see if it includes 5.7 -if (strpos($mysql_version, '5.7') !== false && $mysql_mode != 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION') { +if (strpos($mysql_version, '5.7') !== false && strpos($mysql_mode, 'ONLY_FULL_GROUP_BY') !== false) { $newerror = array(); $newerror['name'] = "MySQL Version"; $newerror['level'] = 3;