Add version of disabled apps when available

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/30275/head
Joas Schilling 5 years ago
parent 069fe1c12e
commit a376aa6c61
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
  1. 4
      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);

Loading…
Cancel
Save