check the user type if it has valid value
default-pipeline default-pipeline #180

This commit is contained in:
balazs committed 2021-05-08 16:19:49 +02:00
1 parent 430b32d0c6
commit 1cc3294ee7
1 file changed
+1 -1
+1 -1
View File
@@ -27,7 +27,7 @@ class AddUserCommand extends Command
$user->setActive(true);
$user->setCreatedDate(new DateTime());
if ($input->hasArgument('type')) {
if ($input->hasArgument('type') && $input->getArgument('type') !== null) {
$user->setType($input->getArgument('type'));
}