Browse Source

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>
tags/v16.0.0beta2
Roeland Jago Douma 5 years ago
parent
commit
f021db956c
No account linked to committer's email address
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      lib/private/Installer.php

+ 4
- 0
lib/private/Installer.php View File

@@ -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…
Cancel
Save