Skip to content

Commit 08c6f1c

Browse files
authored
Merge pull request #30676 from nextcloud/backport/30275/stable21
2 parents 990259f + 8263209 commit 08c6f1c

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
@@ -88,12 +88,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8888

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

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

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

0 commit comments

Comments
 (0)