From 16c4425469faf4ed70b3c162d009104f5d737ff7 Mon Sep 17 00:00:00 2001 From: Neil Lathwood Date: Thu, 23 Feb 2017 23:02:51 +0000 Subject: [PATCH] change validate to check if sql_mode is blank (#5981) --- validate.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/validate.php b/validate.php index 66c8dd0efb..f41149ea14 100755 --- a/validate.php +++ b/validate.php @@ -164,7 +164,12 @@ if (mysqli_connect_error()) { // Test for MySQL Strict mode $strict_mode = dbFetchCell("SELECT @@global.sql_mode"); if (strstr($strict_mode, 'STRICT_TRANS_TABLES')) { - print_fail('You have MySQL STRICT_TRANS_TABLES enabled, please disable this until full support has been added: https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html'); + //FIXME - Come back to this once other MySQL modes are fixed + //print_fail('You have MySQL STRICT_TRANS_TABLES enabled, please disable this until full support has been added: https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html'); +} + +if (empty($strict_mode) === false) { + print_fail("You have not set sql_mode='' in your mysql config"); } $ini_tz = ini_get('date.timezone');