add proper version comparision in OC_Installer::isUpdateAvailable

remotes/origin/fix-10825
Georg Ehrke 11 years ago
parent 404ac8bcd3
commit 305db9c2d7
  1. 3
      lib/private/installer.php

@ -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…
Cancel
Save