From a376aa6c616e4a84cf25a9cfed4a2b4040dc258e Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 15 Dec 2021 09:08:14 +0100 Subject: Add version of disabled apps when available Signed-off-by: Joas Schilling --- core/Command/App/ListApps.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') 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); -- cgit v1.2.3