From 483ad01a0933751732d84f40fab61c45050a7fa8 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 2 Aug 2018 14:27:16 +0200 Subject: There is no update available if the app didnt have a version (aka was not installed) Signed-off-by: Joas Schilling --- lib/private/Installer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3