From: Thomas Müller Date: Thu, 30 Oct 2014 16:24:25 +0000 (+0100) Subject: prevent PHP notice X-Git-Tag: v8.0.0alpha1~407^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=99921489cf2a35d19803e63be67a312ea30f51ac;p=nextcloud-server.git prevent PHP notice --- diff --git a/lib/private/app.php b/lib/private/app.php index 8fcffbad950..73576088d15 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;