Fix syncing of all birthday calendars in one go
This commit is contained in:
parent
0cc53ee06d
commit
8c4af74ce7
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class SyncBirthdayCalendar extends Command {
|
|||
* @param OutputInterface $output
|
||||
*/
|
||||
protected function execute(InputInterface $input, OutputInterface $output) {
|
||||
if ($input->hasArgument('user')) {
|
||||
if ($input->getArgument('user') !== null) {
|
||||
$user = $input->getArgument('user');
|
||||
if (!$this->userManager->userExists($user)) {
|
||||
throw new \InvalidArgumentException("User <$user> in unknown.");
|
||||
|
|
Loading…
Reference in a new issue