Browse Source

Fix DI issue

Signed-off-by: Joas Schilling <coding@schilljs.com>
Joas Schilling 5 years ago
parent
commit
00859f46f3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lib/private/Group/Database.php

+ 4 - 0
lib/private/Group/Database.php

@@ -421,6 +421,8 @@ class Database extends ABackend
 	}
 
 	public function getDisplayName(string $gid): string {
+		$this->fixDI();
+
 		$query = $this->dbConn->getQueryBuilder();
 		$query->select('displayname')
 			->from('groups')
@@ -447,6 +449,8 @@ class Database extends ABackend
 			return false;
 		}
 
+		$this->fixDI();
+
 		$query = $this->dbConn->getQueryBuilder();
 		$query->update('groups')
 			->set('displayname', $query->createNamedParameter($displayName))