diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-03-10 15:42:09 +0300 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-10 19:47:08 +0300 |
commit | 7126b64088fbde6beac868b97b2f7a7b790da1d2 (patch) | |
tree | 33cd67b933b680105f752b1e9b4a953d82e3a218 /apps | |
parent | 730620cfb29d6089c57ae28c2a89f820e908258f (diff) |
Allow to migrate calendars of all users
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/command/migratecalendars.php | 4 | ||||
-rw-r--r-- | apps/dav/command/syncbirthdaycalendar.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/dav/command/migratecalendars.php b/apps/dav/command/migratecalendars.php index 5e7f6e9b697..d887309ac3e 100644 --- a/apps/dav/command/migratecalendars.php +++ b/apps/dav/command/migratecalendars.php @@ -61,8 +61,8 @@ class MigrateCalendars extends Command { protected function execute(InputInterface $input, OutputInterface $output) { $this->service->setup(); - if ($input->hasArgument('user')) { - $user = $input->getArgument('user'); + $user = $input->getArgument('user'); + if (!is_null($user)) { if (!$this->userManager->userExists($user)) { throw new \InvalidArgumentException("User <$user> in unknown."); } diff --git a/apps/dav/command/syncbirthdaycalendar.php b/apps/dav/command/syncbirthdaycalendar.php index 66ab540b9ad..90a73a3eeb3 100644 --- a/apps/dav/command/syncbirthdaycalendar.php +++ b/apps/dav/command/syncbirthdaycalendar.php @@ -61,8 +61,8 @@ class SyncBirthdayCalendar extends Command { * @param OutputInterface $output */ protected function execute(InputInterface $input, OutputInterface $output) { - if ($input->hasArgument('user')) { - $user = $input->getArgument('user'); + $user = $input->getArgument('user'); + if (!is_null($user)) { if (!$this->userManager->userExists($user)) { throw new \InvalidArgumentException("User <$user> in unknown."); } |