mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 20:17:14 +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);
|
$version_stringFormat = str_replace('.','',$version_string);
|
||||||
return ['mysql', $version_string, $version_stringFormat];
|
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);
|
$version_stringFormat = str_replace('.','', $mariaVersion);
|
||||||
return ['mariadb',$mariaVersion, $version_stringFormat];
|
return ['mariadb',$mariaVersion, $version_stringFormat];
|
||||||
}
|
}
|
||||||
|
@ -486,7 +486,7 @@ class Systemhealth {
|
|||||||
|
|
||||||
$dbVersionArr = explode('.',$dbVersion);
|
$dbVersionArr = explode('.',$dbVersion);
|
||||||
|
|
||||||
if($dbVersionArr[0] >= 10 && !($dbVersionArr[1] < 2)) {
|
if (($dbVersionArr[0] == 10 && !($dbVersionArr[1] < 2)) || ($dbVersionArr[0] > 10)) {
|
||||||
$status = 'ok';
|
$status = 'ok';
|
||||||
}
|
}
|
||||||
$mysqlVersion = 'MariaDB '.$dbVersion;
|
$mysqlVersion = 'MariaDB '.$dbVersion;
|
||||||
|
Loading…
Reference in New Issue
Block a user