summaryrefslogtreecommitdiffstats
path: root/lib/private/group
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-01-14 13:17:26 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-01-14 13:17:26 +0100
commit5036e4527ff12034972f02dc011638bc06fbee81 (patch)
tree6f1ef404a6a8ed21cf0d70eaf599d379791951dd /lib/private/group
parent436ce1f4a69f15ed4232bf81f706c631a1a68663 (diff)
downloadnextcloud-server-5036e4527ff12034972f02dc011638bc06fbee81.tar.gz
nextcloud-server-5036e4527ff12034972f02dc011638bc06fbee81.zip
Use IDbConnectin::insertIfNotExist
Diffstat (limited to 'lib/private/group')
-rw-r--r--lib/private/group/database.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/group/database.php b/lib/private/group/database.php
index 8ea5a46c52b..21e7b103554 100644
--- a/lib/private/group/database.php
+++ b/lib/private/group/database.php
@@ -86,8 +86,7 @@ class OC_Group_Database extends OC_Group_Backend {
$this->fixDI();
// Add group
- $qb = $this->dbConn->getQueryBuilder();
- $result = $qb->insertIfNotExists('groups', [
+ $result = $this->dbConn->insertIfNotExist('*PREFIX*groups', [
'gid' => $gid,
]);