forked from ZwiiCMS-Team/ZwiiCampus
1.4.17 Opérateur booléen nouvelle version sans le type
This commit is contained in:
parent
fbbf671289
commit
e2316dc129
@ -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;
|
||||
}
|
||||
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user