summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-07-09 14:22:10 +0200
committerMorris Jobke <hey@morrisjobke.de>2018-07-11 09:26:29 +0200
commit03a6b2b49accc8ff0780463f5f43defb9ebb0fb4 (patch)
treee596ef06d3b7aa87888bcbd5538f149625f1aaab
parent922c2c64b5d9a9f9ba8d7aa1f7c79a788875b7d6 (diff)
downloadnextcloud-server-03a6b2b49accc8ff0780463f5f43defb9ebb0fb4.tar.gz
nextcloud-server-03a6b2b49accc8ff0780463f5f43defb9ebb0fb4.zip
Correctly handle users with numeric user ids
Signed-off-by: Joas Schilling <coding@schilljs.com>
-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 15878a807d8..5bc06678706 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);