add proper version comparision in OC_Installer::isUpdateAvailable
This commit is contained in:
parent
404ac8bcd3
commit
305db9c2d7
1 changed files with 1 additions and 2 deletions
|
@ -377,9 +377,8 @@ class OC_Installer{
|
|||
$ocsdata=OC_OCSClient::getApplication($ocsid);
|
||||
$ocsversion= (string) $ocsdata['version'];
|
||||
$currentversion=OC_App::getAppVersion($app);
|
||||
if($ocsversion<>$currentversion) {
|
||||
if (version_compare($ocsversion, $currentversion, '>')) {
|
||||
return($ocsversion);
|
||||
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue