Skip to content

Commit e431e2a

Browse files
committed
shorter
1 parent 801acbc commit e431e2a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

resources/lib/UnityLDAP.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,8 @@ public function getAllPIGroupOwnerEntries()
344344
public function getAllUID2PIGIDs()
345345
{
346346
// initialize output so each UID is a key with an empty array as its value
347-
$UID2PIGIDs = array_combine(
348-
$this->getAllUsersUIDs(),
349-
array_fill(0, count($this->getAllUsersUIDs()), []),
350-
);
347+
$uids = $this->getAllUsersUIDs();
348+
$UID2PIGIDs = array_combine($uids, array_fill(0, count($uids), []));
351349
// for each PI group, append that GID to the member list for each of its member UIDs
352350
foreach ($this->getAllPIGroupsEntries() as $entry) {
353351
$gid = $entry["cn"][0];

0 commit comments

Comments
 (0)