Browse Source
There is no update available if the app didnt have a version (aka was not installed)
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/10508/head
Joas Schilling
7 years ago
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with
1 additions and
1 deletions
-
lib/private/Installer.php
|
|
|
@ -389,7 +389,7 @@ class Installer { |
|
|
|
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; |
|
|
|
|