diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-04-08 12:53:59 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-04-08 12:53:59 +0200 |
commit | 142fc5f3af6e81f5c777caa9f8d42fad36866de2 (patch) | |
tree | e88100e6683010ae86f38561b69e37132812b07e /apps | |
parent | 9597f4190460c54066586c0eb42ed9a8532ad90a (diff) | |
download | nextcloud-server-142fc5f3af6e81f5c777caa9f8d42fad36866de2.tar.gz nextcloud-server-142fc5f3af6e81f5c777caa9f8d42fad36866de2.zip |
fix return value when a search string was passed to return integer instead of array
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/group_ldap.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php index 820d2c4636e..40d9dec1410 100644 --- a/apps/user_ldap/group_ldap.php +++ b/apps/user_ldap/group_ldap.php @@ -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); } /** |