Skip to content

Commit

Permalink
There is no update available if the app didnt have a version (aka was…
Browse files Browse the repository at this point in the history
… not installed)

Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Aug 2, 2018
1 parent a9f8ee4 commit 483ad01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ public function isUpdateAvailable($appId) {
if($app['id'] === $appId) {
$currentVersion = OC_App::getAppVersion($appId);
$newestVersion = $app['releases'][0]['version'];
if (version_compare($newestVersion, $currentVersion, '>')) {
if ($currentVersion !== '0' && version_compare($newestVersion, $currentVersion, '>')) {
return $newestVersion;
} else {
return false;
Expand Down

0 comments on commit 483ad01

Please sign in to comment.