summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-04-08 12:53:59 +0200
committerArthur Schiwon <blizzz@owncloud.com>2014-04-08 12:53:59 +0200
commit142fc5f3af6e81f5c777caa9f8d42fad36866de2 (patch)
treee88100e6683010ae86f38561b69e37132812b07e /apps
parent9597f4190460c54066586c0eb42ed9a8532ad90a (diff)
downloadnextcloud-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.php3
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);
}
/**