Merge pull request #10185 from nextcloud/backport/10161/correctly-handle-users-with-numeric-user-ids-13
[stable13] Correctly handle users with numeric user ids
This commit is contained in:
commit
5f029e6136
|
@ -23,6 +23,7 @@
|
||||||
|
|
||||||
namespace OC\Core\Command;
|
namespace OC\Core\Command;
|
||||||
|
|
||||||
|
use OC\Core\Command\User\ListCommand;
|
||||||
use Stecman\Component\Symfony\Console\BashCompletion\Completion\CompletionAwareInterface;
|
use Stecman\Component\Symfony\Console\BashCompletion\Completion\CompletionAwareInterface;
|
||||||
use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext;
|
use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext;
|
||||||
use Symfony\Component\Console\Command\Command;
|
use Symfony\Component\Console\Command\Command;
|
||||||
|
@ -76,7 +77,7 @@ class Base extends Command implements CompletionAwareInterface {
|
||||||
$this->writeArrayInOutputFormat($input, $output, $item, ' ' . $prefix);
|
$this->writeArrayInOutputFormat($input, $output, $item, ' ' . $prefix);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!is_int($key)) {
|
if (!is_int($key) || ListCommand::class === get_class($this)) {
|
||||||
$value = $this->valueToString($item);
|
$value = $this->valueToString($item);
|
||||||
if (!is_null($value)) {
|
if (!is_null($value)) {
|
||||||
$output->writeln($prefix . $key . ': ' . $value);
|
$output->writeln($prefix . $key . ': ' . $value);
|
||||||
|
|
Loading…
Reference in New Issue