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
path: root/core
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:05:37 +0300
commit2e4f7f6a7f284ff29bed97ce61f27aaec560fe13 (patch)
tree731643913573f87c2b241e766aa088207074a69b /core
parent545b96c793ec8299dbbbb011564d5978fa5fe02f (diff)
Add version of disabled apps when available
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core')
-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);