Skip to content

Commit

Permalink
Merge pull request #10161 from nextcloud/bugfix/10158/correctly-handl…
Browse files Browse the repository at this point in the history
…e-users-with-numeric-user-ids

Correctly handle users with numeric user ids
  • Loading branch information
MorrisJobke committed Jul 9, 2018
2 parents ecbc1b1 + 1ca075a commit 6afb8af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/Command/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -76,7 +77,7 @@ protected function writeArrayInOutputFormat(InputInterface $input, OutputInterfa
$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);
Expand Down

0 comments on commit 6afb8af

Please sign in to comment.