Merge pull request #23087 from owncloud/allow-migrating-all-calendars

Allow to migrate calendars of all users
This commit is contained in:
Thomas Müller 2016-03-10 17:44:23 +01:00
commit ad61c552ea
2 changed files with 4 additions and 4 deletions

View File

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

View File

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