]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use IDbConnectin::insertIfNotExist
authorThomas Müller <thomas.mueller@tmit.eu>
Thu, 14 Jan 2016 12:17:26 +0000 (13:17 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Thu, 14 Jan 2016 12:17:26 +0000 (13:17 +0100)
lib/private/group/database.php

index 8ea5a46c52b3fca8913278f1e75f12f88943bf81..21e7b103554f69395a88d04e95cf7ef7f00a9140 100644 (file)
@@ -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,
                ]);