Compare commits
2 Commits
ed8e1773c4
...
d57a4c63e0
Author | SHA1 | Date | |
---|---|---|---|
d57a4c63e0 | |||
1cc3294ee7 |
@ -27,7 +27,7 @@ class AddUserCommand extends Command
|
|||||||
$user->setActive(true);
|
$user->setActive(true);
|
||||||
$user->setCreatedDate(new DateTime());
|
$user->setCreatedDate(new DateTime());
|
||||||
|
|
||||||
if ($input->hasArgument('type')) {
|
if ($input->hasArgument('type') && $input->getArgument('type') !== null) {
|
||||||
$user->setType($input->getArgument('type'));
|
$user->setType($input->getArgument('type'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user