From 142fc5f3af6e81f5c777caa9f8d42fad36866de2 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 8 Apr 2014 12:53:59 +0200 Subject: [PATCH] fix return value when a search string was passed to return integer instead of array --- apps/user_ldap/group_ldap.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } /**