mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix return value when a search string was passed to return integer instead of array
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue