diff options
author | Joas Schilling <coding@schilljs.com> | 2021-12-15 09:08:14 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-12-15 09:08:14 +0100 |
commit | a376aa6c616e4a84cf25a9cfed4a2b4040dc258e (patch) | |
tree | 723d2bfbbd3bfeea5b4bde629a973d329978be81 /core | |
parent | 069fe1c12e817d277a8458b533607ac34a40433f (diff) | |
download | nextcloud-server-a376aa6c616e4a84cf25a9cfed4a2b4040dc258e.tar.gz nextcloud-server-a376aa6c616e4a84cf25a9cfed4a2b4040dc258e.zip |
Add version of disabled apps when available
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/Command/App/ListApps.php | 4 |
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); |