Skip to content

Commit 58dc0c9

Browse files
committed
preserve func order
1 parent 80195a0 commit 58dc0c9

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

Diff for: resources/lib/UnityGroup.php

+11-12
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,17 @@ public function getRequests()
408408
return $out;
409409
}
410410

411+
public function getGroupMembers($ignorecache = false)
412+
{
413+
$memberuids = $this->getGroupMemberUIDs($ignorecache);
414+
$out = array();
415+
foreach ($memberuids as $uid) {
416+
$user_obj = new UnityUser($uid, $this->LDAP, $this->SQL, $this->MAILER, $this->REDIS, $this->WEBHOOK);
417+
array_push($out, $user_obj);
418+
}
419+
return $out;
420+
}
421+
411422
public function getGroupMemberUIDs($ignorecache = false): array
412423
{
413424
if (!$ignorecache) {
@@ -424,18 +435,6 @@ public function getGroupMemberUIDs($ignorecache = false): array
424435
return $members;
425436
}
426437

427-
428-
public function getGroupMembers($ignorecache = false)
429-
{
430-
$memberuids = $this->getGroupMemberUIDs($ignorecache);
431-
$out = array();
432-
foreach ($memberuids as $uid) {
433-
$user_obj = new UnityUser($uid, $this->LDAP, $this->SQL, $this->MAILER, $this->REDIS, $this->WEBHOOK);
434-
array_push($out, $user_obj);
435-
}
436-
return $out;
437-
}
438-
439438
public function requestExists($user)
440439
{
441440
$requesters = $this->getRequests();

0 commit comments

Comments
 (0)