summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2013-10-10 01:50:51 -0700
committerBjörn Schießle <bjoern@schiessle.org>2013-10-10 01:50:51 -0700
commit6053007768242b5b02e62556028d7f3025e92935 (patch)
treee6c496d43054a8dcc2b233ce4e9016615f258ae3 /lib
parent1a899ac4c3370d34d76eac542cd5404ef2d48b8c (diff)
parent835f36cb09c9eb13e7475ba49c89802e50b8eec9 (diff)
downloadnextcloud-server-6053007768242b5b02e62556028d7f3025e92935.tar.gz
nextcloud-server-6053007768242b5b02e62556028d7f3025e92935.zip
Merge pull request #5210 from owncloud/sharing_search_users_fix
find users which are in the same group
Diffstat (limited to 'lib')
-rw-r--r--lib/private/group.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/group.php b/lib/private/group.php
index ba93dc129a1..9144ef683b6 100644
--- a/lib/private/group.php
+++ b/lib/private/group.php
@@ -265,7 +265,7 @@ class OC_Group {
public static function displayNamesInGroup($gid, $search = '', $limit = -1, $offset = 0) {
$group = self::getManager()->get($gid);
if ($group) {
- $users = $group->searchDisplayName($search . $limit, $offset);
+ $users = $group->searchDisplayName($search, $limit, $offset);
$displayNames = array();
foreach ($users as $user) {
$displayNames[] = $user->getDisplayName();