Merge pull request #30275 from nextcloud/bugfix/noid/add-version-of-disabled-apps-when-available

Add version of disabled apps when available
This commit is contained in:
Vincent Petry 2022-01-14 11:59:25 +01:00 committed by GitHub
commit 14c60b10d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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