Skip to content

Commit 14c60b1

Browse files
authored
Merge pull request #30275 from nextcloud/bugfix/noid/add-version-of-disabled-apps-when-available
Add version of disabled apps when available
2 parents 6264f5a + a376aa6 commit 14c60b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/Command/App/ListApps.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8787

8888
sort($enabledApps);
8989
foreach ($enabledApps as $app) {
90-
$apps['enabled'][$app] = isset($versions[$app]) ? $versions[$app] : true;
90+
$apps['enabled'][$app] = $versions[$app] ?? true;
9191
}
9292

9393
sort($disabledApps);
9494
foreach ($disabledApps as $app) {
95-
$apps['disabled'][$app] = null;
95+
$apps['disabled'][$app] = $versions[$app] ?? null;
9696
}
9797

9898
$this->writeAppList($input, $output, $apps);

0 commit comments

Comments
 (0)