diff --git a/pandora_console/godmode/um_client/index.php b/pandora_console/godmode/um_client/index.php index d700a05e9b..3cbf584109 100644 --- a/pandora_console/godmode/um_client/index.php +++ b/pandora_console/godmode/um_client/index.php @@ -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.', diff --git a/pandora_console/include/class/ConsoleSupervisor.php b/pandora_console/include/class/ConsoleSupervisor.php index ae61026fb3..c4a43105b3 100644 --- a/pandora_console/include/class/ConsoleSupervisor.php +++ b/pandora_console/include/class/ConsoleSupervisor.php @@ -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++;