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:
authorMorris Jobke <hey@morrisjobke.de>2018-07-11 11:03:27 +0300
committerGitHub <noreply@github.com>2018-07-11 11:03:27 +0300
commit5f029e6136fd384634107f46105410bd75363e37 (patch)
treee1cd85030c17fb5ef1eb5cb688b49ad80a3a5928
parent9d3a4b428dd4be2d61c6019cea529c24cbcf9ca6 (diff)
parent03a6b2b49accc8ff0780463f5f43defb9ebb0fb4 (diff)
Merge pull request #10185 from nextcloud/backport/10161/correctly-handle-users-with-numeric-user-ids-13
[stable13] Correctly handle users with numeric user ids
-rw-r--r--core/Command/Base.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Command/Base.php b/core/Command/Base.php
index 15878a807d8..5bc06678706 100644
--- a/core/Command/Base.php
+++ b/core/Command/Base.php
@@ -23,6 +23,7 @@
namespace OC\Core\Command;
+use OC\Core\Command\User\ListCommand;
use Stecman\Component\Symfony\Console\BashCompletion\Completion\CompletionAwareInterface;
use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext;
use Symfony\Component\Console\Command\Command;
@@ -76,7 +77,7 @@ class Base extends Command implements CompletionAwareInterface {
$this->writeArrayInOutputFormat($input, $output, $item, ' ' . $prefix);
continue;
}
- if (!is_int($key)) {
+ if (!is_int($key) || ListCommand::class === get_class($this)) {
$value = $this->valueToString($item);
if (!is_null($value)) {
$output->writeln($prefix . $key . ': ' . $value);