Skip to content
Snippets Groups Projects
Unverified Commit 483ad01a authored by Joas Schilling's avatar Joas Schilling
Browse files

There is no update available if the app didnt have a version (aka was not installed)

parent a9f8ee4e
No related branches found
No related tags found
No related merge requests found
...@@ -389,7 +389,7 @@ class Installer { ...@@ -389,7 +389,7 @@ class Installer {
if($app['id'] === $appId) { if($app['id'] === $appId) {
$currentVersion = OC_App::getAppVersion($appId); $currentVersion = OC_App::getAppVersion($appId);
$newestVersion = $app['releases'][0]['version']; $newestVersion = $app['releases'][0]['version'];
if (version_compare($newestVersion, $currentVersion, '>')) { if ($currentVersion !== '0' && version_compare($newestVersion, $currentVersion, '>')) {
return $newestVersion; return $newestVersion;
} else { } else {
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment