mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 12:07:15 +01:00
bugfix systemhealth database version > 10.2
This commit is contained in:
parent
9fc8e3cb2a
commit
60ff6243f4
@ -154,7 +154,8 @@ class DB{
|
||||
$version_stringFormat = str_replace('.','',$version_string);
|
||||
return ['mysql', $version_string, $version_stringFormat];
|
||||
}
|
||||
$mariaVersion = substr($version, 0, 4);
|
||||
$version_array = explode('.', $version);
|
||||
$mariaVersion = $version_array[0].'.'.$version_array[1];
|
||||
$version_stringFormat = str_replace('.','', $mariaVersion);
|
||||
return ['mariadb',$mariaVersion, $version_stringFormat];
|
||||
}
|
||||
|
@ -486,8 +486,8 @@ class Systemhealth {
|
||||
|
||||
$dbVersionArr = explode('.',$dbVersion);
|
||||
|
||||
if($dbVersionArr[0] >= 10 && !($dbVersionArr[1] < 2)) {
|
||||
$status = 'ok';
|
||||
if (($dbVersionArr[0] == 10 && !($dbVersionArr[1] < 2)) || ($dbVersionArr[0] > 10)) {
|
||||
$status = 'ok';
|
||||
}
|
||||
$mysqlVersion = 'MariaDB '.$dbVersion;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user