aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/App
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-01-14 11:59:25 +0100
committerGitHub <noreply@github.com>2022-01-14 11:59:25 +0100
commit14c60b10d0d49f007869b2ba73de2a6b20f0a05d (patch)
tree211437a21722f8057f55e67c87b0b4dad07a2bcd /core/Command/App
parent6264f5aef74a505cda72c6edfedbb6f68f500ee9 (diff)
parenta376aa6c616e4a84cf25a9cfed4a2b4040dc258e (diff)
downloadnextcloud-server-14c60b10d0d49f007869b2ba73de2a6b20f0a05d.tar.gz
nextcloud-server-14c60b10d0d49f007869b2ba73de2a6b20f0a05d.zip
Merge pull request #30275 from nextcloud/bugfix/noid/add-version-of-disabled-apps-when-available
Add version of disabled apps when available
Diffstat (limited to 'core/Command/App')
-rw-r--r--core/Command/App/ListApps.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Command/App/ListApps.php b/core/Command/App/ListApps.php
index 524b5ecd89d..85ec1d3c0d1 100644
--- a/core/Command/App/ListApps.php
+++ b/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);