summaryrefslogtreecommitdiffstats
path: root/lib/private/Group
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-03-15 11:09:18 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-03-26 11:35:07 +0200
commit421a00854c74bbbe2577b696125377986b705ec0 (patch)
tree3ed01423fee1d67cc71629426879689e1d269cfc /lib/private/Group
parent7ea00b7b5ff002b0395e8b7d651ace14dcde586f (diff)
downloadnextcloud-server-421a00854c74bbbe2577b696125377986b705ec0.tar.gz
nextcloud-server-421a00854c74bbbe2577b696125377986b705ec0.zip
Make sure DI is done
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Group')
-rw-r--r--lib/private/Group/Database.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/Group/Database.php b/lib/private/Group/Database.php
index a980b12de3c..b9b2428e01b 100644
--- a/lib/private/Group/Database.php
+++ b/lib/private/Group/Database.php
@@ -239,6 +239,8 @@ class Database extends Backend {
* Returns a list with all groups
*/
public function getGroups($search = '', $limit = null, $offset = null) {
+ $this->fixDI();
+
$query = $this->dbConn->getQueryBuilder();
$query->select('gid')
->from('groups')
@@ -300,6 +302,8 @@ class Database extends Backend {
* @return array an array of user ids
*/
public function usersInGroup($gid, $search = '', $limit = null, $offset = null) {
+ $this->fixDI();
+
$query = $this->dbConn->getQueryBuilder();
$query->select('uid')
->from('group_user')
@@ -332,6 +336,8 @@ class Database extends Backend {
* @return int|false
*/
public function countUsersInGroup($gid, $search = '') {
+ $this->fixDI();
+
$query = $this->dbConn->getQueryBuilder();
$query->selectAlias($query->createFunction('COUNT(*)'), 'num_users')
->from('group_user')