Use IDbConnectin::insertIfNotExist
This commit is contained in:
parent
436ce1f4a6
commit
5036e4527f
1 changed files with 1 additions and 2 deletions
|
@ -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,
|
||||
]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue