aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-10-30 21:43:38 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-10-30 21:43:38 +0100
commit1c7f1a878742fc159ad8d221dc7b42d138f00a38 (patch)
tree254653a0accccad7fae4e829fc205b87b0f46bb5
parentbed81ea854119b1f48d39a5da3381c3eb968838a (diff)
parent99921489cf2a35d19803e63be67a312ea30f51ac (diff)
downloadnextcloud-server-1c7f1a878742fc159ad8d221dc7b42d138f00a38.tar.gz
nextcloud-server-1c7f1a878742fc159ad8d221dc7b42d138f00a38.zip
Merge pull request #11877 from owncloud/fix-11875-master
prevent PHP notice
-rw-r--r--lib/private/app.php2
1 files changed, 1 insertions, 1 deletions
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;