Fix checkNewVersion
This commit is contained in:
parent
497a51ea18
commit
4b7826b078
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user