aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Group/Database.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Group/Database.php')
-rw-r--r--lib/private/Group/Database.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Group/Database.php b/lib/private/Group/Database.php
index c77ae9e2ee8..53c413f0fa9 100644
--- a/lib/private/Group/Database.php
+++ b/lib/private/Group/Database.php
@@ -354,7 +354,7 @@ class Database extends ABackend
$this->fixDI();
$query = $this->dbConn->getQueryBuilder();
- $query->selectAlias($query->createFunction('COUNT(*)'), 'num_users')
+ $query->select($query->func()->count('*', 'num_users'))
->from('group_user')
->where($query->expr()->eq('gid', $query->createNamedParameter($gid)));