Skip to content

Commit

Permalink
adding values to array in loop instead of overwriting it
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Schaer committed Jun 26, 2024
1 parent 452521b commit 36cc7d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/RestApi/ApiHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static function getMemberAsArray(Member $member, array $allowedGroups, $i
foreach ($allowedGroups as $group) {
$rootGroupIds = $member->getFirstLevelGroupIds($group->getId());
foreach ($rootGroupIds as $id) {
$rootGroups = $groupRepo->get($id)->getName();
$rootGroups[] = $groupRepo->get($id)->getName();
}
}

Expand Down

0 comments on commit 36cc7d8

Please sign in to comment.