From bb352fb667e87ea0829f1da5f9e85c34bdefe9fa Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 19 Oct 2018 16:44:28 +0200 Subject: Use the defined func()->count() instead of manual counting Signed-off-by: Joas Schilling --- apps/user_ldap/lib/Mapping/AbstractMapping.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/user_ldap/lib/Mapping/AbstractMapping.php') diff --git a/apps/user_ldap/lib/Mapping/AbstractMapping.php b/apps/user_ldap/lib/Mapping/AbstractMapping.php index c3f09fd6caa..7ec22b6b79c 100644 --- a/apps/user_ldap/lib/Mapping/AbstractMapping.php +++ b/apps/user_ldap/lib/Mapping/AbstractMapping.php @@ -311,7 +311,7 @@ abstract class AbstractMapping { */ public function count() { $qb = $this->dbc->getQueryBuilder(); - $query = $qb->select($qb->createFunction('COUNT(' . $qb->getColumnName('ldap_dn') . ')')) + $query = $qb->select($qb->func()->count('ldap_dn')) ->from($this->getTableName()); $res = $query->execute(); $count = $res->fetchColumn(); -- cgit v1.2.3 Mirror of redmine code source: https://github.com/redmine/redminewww-data
summaryrefslogtreecommitdiffstats