diff --git a/modules/setup/application/forms/AdminAccountPage.php b/modules/setup/application/forms/AdminAccountPage.php index 7e34ed6518..b33749efc9 100644 --- a/modules/setup/application/forms/AdminAccountPage.php +++ b/modules/setup/application/forms/AdminAccountPage.php @@ -301,8 +301,9 @@ protected function fetchUsers() ->select(array('user_name')) ->order('user_name', 'asc', true); if (in_array($this->backendConfig['backend'], array('ldap', 'msldap'))) { - /** @var LdapQuery $query */ - $query->setUsePagedResults(); + /** @var LdapQuery $ldapQuery */ + $ldapQuery = $query->getQuery(); + $ldapQuery->setUsePagedResults(); } return $query->fetchColumn(); @@ -360,8 +361,9 @@ protected function fetchGroups() ->createUserGroupBackend() ->select(array('group_name')); if (in_array($this->backendConfig['backend'], array('ldap', 'msldap'))) { - /** @var LdapQuery $query */ - $query->setUsePagedResults(); + /** @var LdapQuery $ldapQuery */ + $ldapQuery = $query->getQuery(); + $ldapQuery->setUsePagedResults(); } return $query->fetchColumn();