Skip to content
Snippets Groups Projects
Commit 305db9c2 authored by Georg Ehrke's avatar Georg Ehrke
Browse files

add proper version comparision in OC_Installer::isUpdateAvailable

parent 404ac8bc
Branches
No related tags found
No related merge requests found
...@@ -377,9 +377,8 @@ class OC_Installer{ ...@@ -377,9 +377,8 @@ class OC_Installer{
$ocsdata=OC_OCSClient::getApplication($ocsid); $ocsdata=OC_OCSClient::getApplication($ocsid);
$ocsversion= (string) $ocsdata['version']; $ocsversion= (string) $ocsdata['version'];
$currentversion=OC_App::getAppVersion($app); $currentversion=OC_App::getAppVersion($app);
if($ocsversion<>$currentversion) { if (version_compare($ocsversion, $currentversion, '>')) {
return($ocsversion); return($ocsversion);
}else{ }else{
return false; return false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment