projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5edfc9
)
Rerun of System Checks.
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Wed, 6 Dec 2017 13:29:45 +0000
(14:29 +0100)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Wed, 6 Dec 2017 13:29:45 +0000
(14:29 +0100)
includes/system_tests.inc
patch
|
blob
|
history
diff --git
a/includes/system_tests.inc
b/includes/system_tests.inc
index 3b8c8bbde4faf6291d743041427bcb1f156c7428..ab9aac21a73ac33b84e45eddcdb366bb88385f92 100644
(file)
--- 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;