From 9e2e0c4c3024fc81579842e70fd384dd8461cd11 Mon Sep 17 00:00:00 2001 From: Juan Pablo Villafáñez Date: Tue, 12 Jul 2016 09:04:48 +0200 Subject: Convert the group limit to match the same behaviour as the user search Signed-off-by: Arthur Schiwon --- apps/user_ldap/lib/Command/Search.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/user_ldap/lib') diff --git a/apps/user_ldap/lib/Command/Search.php b/apps/user_ldap/lib/Command/Search.php index 17e506855b2..57970b1ac5d 100644 --- a/apps/user_ldap/lib/Command/Search.php +++ b/apps/user_ldap/lib/Command/Search.php @@ -114,6 +114,11 @@ class Search extends Command { $proxy = new Group_Proxy($configPrefixes, $ldapWrapper); $getMethod = 'getGroups'; $printID = false; + // convert the limit of groups to null. This will show all the groups available instead of + // nothing, and will match the same behaviour the search for users has. + if ($limit === 0) { + $limit = null; + } } else { $proxy = new User_Proxy($configPrefixes, $ldapWrapper, $this->ocConfig); $getMethod = 'getDisplayNames'; -- cgit v1.2.3