Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-12-15 11:08:14 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2022-01-14 14:02:47 +0300
commit28c6a4db1dc156229cf3fd273b662536a74f18d5 (patch)
tree3dc73fc177cc459737adc34731965e06d58b1986
parent1938c41ace9a1038e3e93f40db86328262d5c6b2 (diff)
Add version of disabled apps when available
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--core/Command/App/ListApps.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Command/App/ListApps.php b/core/Command/App/ListApps.php
index 524b5ecd89d..85ec1d3c0d1 100644
--- a/core/Command/App/ListApps.php
+++ b/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);