Fix checkNewVersion
This commit is contained in:
parent
497a51ea18
commit
4b7826b078
@ -366,11 +366,12 @@ class helper
|
|||||||
public static function checkNewVersion($channel)
|
public static function checkNewVersion($channel)
|
||||||
{
|
{
|
||||||
$version = helper::getOnlineVersion($channel);
|
$version = helper::getOnlineVersion($channel);
|
||||||
|
$update = false;
|
||||||
if (!empty($version)) {
|
if (!empty($version)) {
|
||||||
return ((version_compare(common::ZWII_VERSION, $version)) === -1);
|
$update = version_compare(common::ZWII_VERSION, $version) === -1;
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
return $update;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user