]> source.dussan.org Git - nextcloud-server.git/commitdiff
prevent PHP notice
authorThomas Müller <thomas.mueller@tmit.eu>
Thu, 30 Oct 2014 16:24:25 +0000 (17:24 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Thu, 30 Oct 2014 16:24:25 +0000 (17:24 +0100)
lib/private/app.php

index 8fcffbad9500a44637706137ec638d43efb6df85..73576088d1572019004e17d322504d70549258b5 100644 (file)
@@ -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;