diff --git a/lib/private/app.php b/lib/private/app.php index 8fcffbad95..73576088d1 100644 --- a/lib/private/app.php +++ b/lib/private/app.php @@ -990,7 +990,7 @@ class OC_App { public static function shouldUpgrade($app) { $versions = self::getAppVersions(); $currentVersion = OC_App::getAppVersion($app); - if ($currentVersion) { + if ($currentVersion && isset($versions[$app])) { $installedVersion = $versions[$app]; if (version_compare($currentVersion, $installedVersion, '>')) { return true;