From e2316dc129ae71d3786ef8e73b2b74b4b28d0c39 Mon Sep 17 00:00:00 2001 From: F TEMPEZ Date: Wed, 31 Jan 2024 14:36:25 +0100 Subject: [PATCH] =?UTF-8?q?1.4.17=20Op=C3=A9rateur=20bool=C3=A9en=20nouvel?= =?UTF-8?q?le=20version=20=20sans=20le=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/class/helper.class.php | 2 +- core/class/layout.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/class/helper.class.php b/core/class/helper.class.php index 431d4f0..23a5d57 100644 --- a/core/class/helper.class.php +++ b/core/class/helper.class.php @@ -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; } diff --git a/core/class/layout.class.php b/core/class/layout.class.php index 952ca2b..2d0eced 100644 --- a/core/class/layout.class.php +++ b/core/class/layout.class.php @@ -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]); } }