diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-03-10 13:42:09 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-03-10 13:42:09 +0100 |
commit | 94915e39db3c7ca0a8fe493fb4d2039fdf49d818 (patch) | |
tree | 2e92bd12e2e08413bfa639e24d9f245b3d0e3cf9 /apps | |
parent | 41aae971a9a0e4e2cb53a64ba56ae4fe5b0a33d4 (diff) | |
download | nextcloud-server-94915e39db3c7ca0a8fe493fb4d2039fdf49d818.tar.gz nextcloud-server-94915e39db3c7ca0a8fe493fb4d2039fdf49d818.zip |
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 5a2baa31d93..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->getArgument('user') !== null) { - $user = $input->getArgument('user'); + $user = $input->getArgument('user'); + if (!is_null($user)) { if (!$this->userManager->userExists($user)) { throw new \InvalidArgumentException("User <$user> in unknown."); } |