Skip to content
Permalink
Browse files

Ensure $roles is an array when creating users. (#4134)

This prevents an error from being thrown when constructing the success message.  See #4133.
  • Loading branch information...
ndouglas authored and enzolutions committed Sep 6, 2019
1 parent b34af90 commit b84ad5c424d3494f8015982017bfd0e240fa497d
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/Command/User/CreateCommand.php
@@ -108,6 +108,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
$username = $input->getArgument('username');
$password = $input->getArgument('password');
$roles = $input->getOption('roles');
if (is_string($roles)) {
$roles = explode(',', $roles);
}
$email = $input->getOption('email');
$status = $input->getOption('status');

0 comments on commit b84ad5c

Please sign in to comment.
You can’t perform that action at this time.