diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-03-22 16:54:35 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-03-22 16:54:35 +0100 |
commit | f021db956c1e0c9da4a9829dce0d27d1ba45ecef (patch) | |
tree | 2038899f6ebe0b77e469aaeed5af10b802642da5 /lib/private/Installer.php | |
parent | b1b2378758a5e855143286a9126b4b92b81a3afc (diff) | |
download | nextcloud-server-f021db956c1e0c9da4a9829dce0d27d1ba45ecef.tar.gz nextcloud-server-f021db956c1e0c9da4a9829dce0d27d1ba45ecef.zip |
Check if elements are set in installer
Since we now have all the apps from the appstore we need to do a bit
more checking.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Installer.php')
-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; |