1.4.17 Opérateur booléen nouvelle version sans le type

This commit is contained in:
Fred Tempez 2024-01-31 14:36:25 +01:00
parent fbbf671289
commit e2316dc129
2 changed files with 2 additions and 2 deletions

View File

@ -368,7 +368,7 @@ class helper
$version = helper::getOnlineVersion($channel);
$update = false;
if (!empty($version)) {
$update = version_compare(common::ZWII_VERSION, $version) === -1;
$update = version_compare(common::ZWII_VERSION, $version) == -1;
}
return $update;
}

View File

@ -1104,7 +1104,7 @@ class layout extends common
$this->setData(['core', 'lastAutoUpdate', $today]);
if (
helper::checkNewVersion(common::ZWII_UPDATE_CHANNEL)
) {
) {
$this->setData(['core', 'updateAvailable', true]);
}
}