Fix syncing of all birthday calendars in one go

This commit is contained in:
Joas Schilling 2016-03-09 16:14:33 +01:00
parent 0cc53ee06d
commit 8c4af74ce7
1 changed files with 1 additions and 1 deletions

View File

@ -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.");