mirror of
https://github.com/nextcloud/server.git
synced 2026-07-14 20:39:17 -04:00
Merge pull request #14813 from nextcloud/fix/sentry/unset
Check if elements are set in installer
This commit is contained in:
commit
8432583dc6
1 changed files with 4 additions and 0 deletions
|
|
@ -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 a new issue