Use IDbConnectin::insertIfNotExist

This commit is contained in:
Thomas Müller 2016-01-14 13:17:26 +01:00
parent 436ce1f4a6
commit 5036e4527f

View 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,
]);