aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-07-09 15:38:16 +0200
committerGitHub <noreply@github.com>2018-07-09 15:38:16 +0200
commit6afb8af4d1e625a44a0f2e142503eb3a585efb8b (patch)
tree317afa557fba3f93ba405f62f109b77eaaa85448
parentecbc1b10aec9cad95b2818077dd38738fe96fee9 (diff)
parent1ca075a113fe5407e62f57b7b638c0d53bfb9e10 (diff)
downloadnextcloud-server-6afb8af4d1e625a44a0f2e142503eb3a585efb8b.tar.gz
nextcloud-server-6afb8af4d1e625a44a0f2e142503eb3a585efb8b.zip
Merge pull request #10161 from nextcloud/bugfix/10158/correctly-handle-users-with-numeric-user-ids
Correctly handle users with numeric user ids
-rw-r--r--core/Command/Base.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Command/Base.php b/core/Command/Base.php
index 536de20711c..dbf6c71b8f4 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);