fix return value when a search string was passed to return integer instead of array

remotes/origin/ldap_group_count
Arthur Schiwon 2014-04-08 12:53:59 +07:00
parent 9597f41904
commit 142fc5f3af
1 changed files with 2 additions and 1 deletions

@ -323,6 +323,7 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface {
// and let it count.
//For now this is not important, because the only use of this method
//does not supply a search string
$groupUsers = array();
foreach($members as $member) {
if($isMemberUid) {
//we got uids, need to get their DNs to 'tranlsate' them to usernames
@ -350,7 +351,7 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface {
}
}
return $groupUsers;
return count($groupUsers);
}
/**