From f725cc66a385311d9995ec4215f57448b59f124e Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 27 Oct 2014 23:39:30 +0100 Subject: consolidate user count filter in wizard and user back end --- apps/user_ldap/user_ldap.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'apps/user_ldap/user_ldap.php') diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index 6e244311d4a..c2f87ebeb22 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -290,8 +290,7 @@ class USER_LDAP extends BackendUtility implements \OCP\UserInterface { * @return int|bool */ public function countUsers() { - $filter = \OCP\Util::mb_str_replace( - '%uid', '*', $this->access->connection->ldapLoginFilter, 'UTF-8'); + $filter = $this->access->getFilterForUserCount(); $entries = $this->access->countUsers($filter); return $entries; } -- cgit v1.2.3