add proper version comparision in OC_Installer::isUpdateAvailable

This commit is contained in:
Georg Ehrke 2014-07-10 17:17:55 +02:00
parent 404ac8bcd3
commit 305db9c2d7

View file

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