summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-09 16:44:19 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-09 16:44:19 +0100
commit822541b6899f486f479b1d9ec43948c365388e73 (patch)
treebcd6254d53d49ed5bd63418b8c3afff52c9cd6e8
parentf00d30d777d63683abeba2a7192f50268b3e90ac (diff)
parent8c4af74ce7a02fa4d75329f42d1c63a21803af06 (diff)
downloadnextcloud-server-822541b6899f486f479b1d9ec43948c365388e73.tar.gz
nextcloud-server-822541b6899f486f479b1d9ec43948c365388e73.zip
Merge pull request #23035 from owncloud/fix-syncing-of-all-birthday-calendars
Fix syncing of all birthday calendars in one go
-rw-r--r--apps/dav/command/syncbirthdaycalendar.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/command/syncbirthdaycalendar.php b/apps/dav/command/syncbirthdaycalendar.php
index 66ab540b9ad..5a2baa31d93 100644
--- a/apps/dav/command/syncbirthdaycalendar.php
+++ b/apps/dav/command/syncbirthdaycalendar.php
@@ -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.");