|
@@ -109,6 +109,7 @@ class Database extends ABackend
|
|
|
$builder = $this->dbConn->getQueryBuilder();
|
|
|
$result = $builder->insert('groups')
|
|
|
->setValue('gid', $builder->createNamedParameter($gid))
|
|
|
+ ->setValue('displayname', $builder->createNamedParameter($gid))
|
|
|
->execute();
|
|
|
} catch(UniqueConstraintViolationException $e) {
|
|
|
$result = 0;
|
|
@@ -451,6 +452,11 @@ class Database extends ABackend
|
|
|
|
|
|
$this->fixDI();
|
|
|
|
|
|
+ $displayName = trim($displayName);
|
|
|
+ if ($displayName === '') {
|
|
|
+ $displayName = $gid;
|
|
|
+ }
|
|
|
+
|
|
|
$query = $this->dbConn->getQueryBuilder();
|
|
|
$query->update('groups')
|
|
|
->set('displayname', $query->createNamedParameter($displayName))
|