diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-03-25 08:57:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-25 08:57:34 +0100 |
commit | 8432583dc62b7bb6fd02dfd6b004eb71506d1ef1 (patch) | |
tree | 4b4951d4b19ac0d8a50d6ce7ac8b5520bfa5d4da /lib | |
parent | fb1e555b5aad8efe5fe9c78a8161b991ac8e2048 (diff) | |
parent | f021db956c1e0c9da4a9829dce0d27d1ba45ecef (diff) | |
download | nextcloud-server-8432583dc62b7bb6fd02dfd6b004eb71506d1ef1.tar.gz nextcloud-server-8432583dc62b7bb6fd02dfd6b004eb71506d1ef1.zip |
Merge pull request #14813 from nextcloud/fix/sentry/unset
Check if elements are set in installer
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Installer.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Installer.php b/lib/private/Installer.php index dc1110c0496..a410c6a011f 100644 --- a/lib/private/Installer.php +++ b/lib/private/Installer.php @@ -391,6 +391,10 @@ class Installer { foreach($this->apps as $app) { if($app['id'] === $appId) { $currentVersion = OC_App::getAppVersion($appId); + + if (!isset($app['releases'][0]['version'])) { + return false; + } $newestVersion = $app['releases'][0]['version']; if ($currentVersion !== '0' && version_compare($newestVersion, $currentVersion, '>')) { return $newestVersion; |