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; }