13004 checknewversion

This commit is contained in:
Fred Tempez 2023-09-22 18:08:54 +02:00
parent 81b8f32b52
commit bcf01dc8fa

View File

@ -366,12 +366,13 @@ class helper
public static function checkNewVersion($channel)
{
$version = helper::getOnlineVersion($channel);
$update = false;
if (!empty($version)) {
return ((version_compare(common::ZWII_VERSION, $version)) === -1);
} else {
return false;
$update = version_compare(common::ZWII_VERSION, $version) === -1;
}
return $update;
}
/**