summaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Collaboration')
-rw-r--r--lib/private/Collaboration/Resources/Manager.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Collaboration/Resources/Manager.php b/lib/private/Collaboration/Resources/Manager.php
index 18301e0f2f5..82a14f47d9e 100644
--- a/lib/private/Collaboration/Resources/Manager.php
+++ b/lib/private/Collaboration/Resources/Manager.php
@@ -72,7 +72,10 @@ class Manager implements IManager {
*/
public function newCollection(string $name): ICollection {
$query = $this->connection->getQueryBuilder();
- $query->insert('collres_collections');
+ $query->insert('collres_collections')
+ ->values([
+ 'name' => $query->createNamedParameter($name),
+ ]);
$query->execute();
return new Collection($this, $this->connection, $query->getLastInsertId(), $name);