#8730 Fixed console server version

This commit is contained in:
Daniel Maya 2022-05-06 11:54:17 +02:00
parent 3dc57f8a8c
commit 1b3994d32c
2 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ if (is_ajax() !== true) {
if ($server_version !== false
&& preg_match('/NG\.(\d\.*\d*?) /', $server_version, $matches) > 0
) {
if ((float) $matches[1] !== (float) $current_package) {
if ((float) $matches[1] !== floor((float) $current_package)) {
ui_print_warning_message(
__(
'Master server version %s does not match console version %s.',

View File

@ -2490,7 +2490,7 @@ class ConsoleSupervisor
foreach ($server_version_list as $server) {
if (strpos(
$server['version'],
floor($config['current_package'])
(string) floor($config['current_package'])
) === false
) {
$missed++;