Merge pull request #14813 from nextcloud/fix/sentry/unset
Check if elements are set in installer
This commit is contained in:
commit
8432583dc6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue