diff options
-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); |