summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Command/CreateCalendar.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/Command/CreateCalendar.php')
-rw-r--r--apps/dav/lib/Command/CreateCalendar.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/lib/Command/CreateCalendar.php b/apps/dav/lib/Command/CreateCalendar.php
index 54cb06db666..da1f706a8b8 100644
--- a/apps/dav/lib/Command/CreateCalendar.php
+++ b/apps/dav/lib/Command/CreateCalendar.php
@@ -76,9 +76,10 @@ class CreateCalendar extends Command {
$this->groupManager
);
$config = \OC::$server->getConfig();
+ $random = \OC::$server->getSecureRandom();
$name = $input->getArgument('name');
- $caldav = new CalDavBackend($this->dbConnection, $principalBackend, $this->userManager, $config);
+ $caldav = new CalDavBackend($this->dbConnection, $principalBackend, $this->userManager, $config, $random);
$caldav->createCalendar("principals/users/$user", $name, []);
}
}