Browse Source

Merge pull request #30275 from nextcloud/bugfix/noid/add-version-of-disabled-apps-when-available

Add version of disabled apps when available
pull/30615/head
Vincent Petry 4 years ago
committed by GitHub
parent
commit
14c60b10d0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      core/Command/App/ListApps.php

4
core/Command/App/ListApps.php

@ -87,12 +87,12 @@ class ListApps extends Base {
sort($enabledApps);
foreach ($enabledApps as $app) {
$apps['enabled'][$app] = isset($versions[$app]) ? $versions[$app] : true;
$apps['enabled'][$app] = $versions[$app] ?? true;
}
sort($disabledApps);
foreach ($disabledApps as $app) {
$apps['disabled'][$app] = null;
$apps['disabled'][$app] = $versions[$app] ?? null;
}
$this->writeAppList($input, $output, $apps);

Loading…
Cancel
Save