Skip to content

Conversation

miaulalala
Copy link
Contributor

  • Resolves: #

Summary

TODO

  • ...

Checklist

@miaulalala miaulalala self-assigned this Oct 22, 2025
@miaulalala miaulalala added the 3. to review Waiting for reviews label Oct 22, 2025
@miaulalala miaulalala requested a review from a team as a code owner October 22, 2025 16:44
@miaulalala miaulalala requested review from Altahrim, salmart-dev and sorbaugh and removed request for a team October 22, 2025 16:44
$users = [];
foreach ($subAdminOfGroups as $group) {
$users = array_merge($users, $this->groupManager->displayNamesInGroup($group, $search, $limit, $offset));
$users[] = $this->groupManager->displayNamesInGroup($group, $search, $limit, $offset);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given doc, UID is used as key so it should also be possible to use it and avoid array_merge:

Suggested change
$users[] = $this->groupManager->displayNamesInGroup($group, $search, $limit, $offset);
foreach $this->groupManager->displayNamesInGroup($group, $search, $limit, $offset) as $uid => $user) {
$users[$uid] = true;
}

Also, we don't care about user name, so I used true instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants