Correctly handle users with numeric user ids

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/10161/head
Joas Schilling 7 years ago
parent ecbc1b10ae
commit 1ca075a113
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
  1. 3
      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);

Loading…
Cancel
Save