Merge pull request #10161 from nextcloud/bugfix/10158/correctly-handle-users-with-numeric-user-ids

Correctly handle users with numeric user ids
This commit is contained in:
Morris Jobke 2018-07-09 15:38:16 +02:00 committed by GitHub
commit 6afb8af4d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);