Commit 319edbd3 authored by Vincent Petry's avatar Vincent Petry Committed by GitHub
Browse files

Merge pull request #26493 from owncloud/fix-symfony-command-table

Fix user:report command table helper
parents a17fec22 88040f18
......@@ -28,6 +28,7 @@ use OCP\IUserManager;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Helper\Table;
class Report extends Command {
/** @var IUserManager */
......@@ -48,8 +49,7 @@ class Report extends Command {
}
protected function execute(InputInterface $input, OutputInterface $output) {
/** @var \Symfony\Component\Console\Helper\TableHelper $table */
$table = $this->getHelperSet()->get('table');
$table = new Table($output);
$table->setHeaders(['User Report', '']);
$userCountArray = $this->countUsers();
if(!empty($userCountArray)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment