From d8c20899e75cfa22aec62b1ad1c46a74c0bb5edc Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Wed, 6 Dec 2017 14:29:45 +0100 Subject: [PATCH] Rerun of System Checks. --- includes/system_tests.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/system_tests.inc b/includes/system_tests.inc index 3b8c8bbd..ab9aac21 100644 --- a/includes/system_tests.inc +++ b/includes/system_tests.inc @@ -24,7 +24,10 @@ function tst_mysql() $test['descr'] = _('MySQL version'). ' >=4.1'; $test['type'] = 3; $test['test'] = db_get_version(); - $test['result'] = $test['test']>='4.1' || explode('-', $test['test'])[1] == 'MariaDB'; + if (!($test['result'] = ($test['test']>='4.1'))) { + $db_str = explode('-', $test['test']); + $test['result'] = ($db_str[1] == 'MariaDB'); + } $test['comments'] = _('Upgrade MySQL server to version at least 4.1'); return $test; -- 2.30.2