From 4b7826b0788859fdd8c662a540a73b00c6dfeec7 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 22 Sep 2023 18:06:58 +0200 Subject: [PATCH] Fix checkNewVersion --- core/class/helper.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/class/helper.class.php b/core/class/helper.class.php index 7ef941b3..bde6bcaf 100644 --- a/core/class/helper.class.php +++ b/core/class/helper.class.php @@ -366,11 +366,12 @@ 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; }