summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-10-30 17:24:25 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-10-30 17:24:25 +0100
commit99921489cf2a35d19803e63be67a312ea30f51ac (patch)
tree53a7f570e6d8cb74762a434dd55563a898746c45 /lib/private
parent90e523ead09436c54993ea527a1eec3faad7a0bd (diff)
downloadnextcloud-server-99921489cf2a35d19803e63be67a312ea30f51ac.tar.gz
nextcloud-server-99921489cf2a35d19803e63be67a312ea30f51ac.zip
prevent PHP notice
Diffstat (limited to 'lib/private')
-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;