Add version of disabled apps when available

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2021-12-15 09:08:14 +01:00
parent 069fe1c12e
commit a376aa6c61
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA

View file

@ -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);