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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
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); |
|
|
|
|