Fix checkNewVersion

This commit is contained in:
Fred Tempez 2023-09-22 18:06:58 +02:00
parent 497a51ea18
commit 4b7826b078

View File

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