Merge pull request #23035 from owncloud/fix-syncing-of-all-birthday-calendars

Fix syncing of all birthday calendars in one go
This commit is contained in:
Thomas Müller 2016-03-09 16:44:19 +01:00
commit 822541b689
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.");