From 03a6b2b49accc8ff0780463f5f43defb9ebb0fb4 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 9 Jul 2018 14:22:10 +0200 Subject: Correctly handle users with numeric user ids Signed-off-by: Joas Schilling --- core/Command/Base.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core') 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); -- cgit v1.2.3