diff options
author | Joas Schilling <coding@schilljs.com> | 2018-08-02 14:27:16 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-08-02 14:27:16 +0200 |
commit | 483ad01a0933751732d84f40fab61c45050a7fa8 (patch) | |
tree | e59caef7ede4090afbf81af74145f1d9ce7bed06 /lib/private | |
parent | a9f8ee4e9d9aead633e77c151f41827c2a4ee30d (diff) | |
download | nextcloud-server-483ad01a0933751732d84f40fab61c45050a7fa8.tar.gz nextcloud-server-483ad01a0933751732d84f40fab61c45050a7fa8.zip |
There is no update available if the app didnt have a version (aka was not installed)
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Installer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Installer.php b/lib/private/Installer.php index b6586eceabe..d58ccb36943 100644 --- a/lib/private/Installer.php +++ b/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; |