aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Group/Group.php
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-06-15 22:52:30 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-06-15 22:54:28 +0200
commitcc2d58a850f9a8336344d00be8ac82e3e33b78ee (patch)
tree58421896bc7ceec9fb23c74667194f8694efcc9b /lib/private/Group/Group.php
parent2ec4fb43278a9183df5565534aa6b1bc956f5e2d (diff)
downloadnextcloud-server-cc2d58a850f9a8336344d00be8ac82e3e33b78ee.tar.gz
nextcloud-server-cc2d58a850f9a8336344d00be8ac82e3e33b78ee.zip
Keep userids as keys on group search
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/private/Group/Group.php')
-rw-r--r--lib/private/Group/Group.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Group/Group.php b/lib/private/Group/Group.php
index cc6315263d4..275b697bc3b 100644
--- a/lib/private/Group/Group.php
+++ b/lib/private/Group/Group.php
@@ -211,10 +211,10 @@ class Group implements IGroup {
$userIds = $backend->usersInGroup($this->gid, $search, $limit, $offset);
$users += $this->getVerifiedUsers($userIds);
if (!is_null($limit) and $limit <= 0) {
- return array_values($users);
+ return $users;
}
}
- return array_values($users);
+ return $users;
}
/**