Skip to content

Commit 41dde6b

Browse files
committedApr 7, 2025·
rename confusing variables
1 parent a1679de commit 41dde6b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎resources/lib/UnityLDAP.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,13 @@ public function getUnassignedID($uid, $UnitySQL)
203203
// found csv file
204204
$handle = fopen($fileinfo->getPathname(), "r");
205205
while (($data = fgetcsv($handle, 1000, ",")) !== false) {
206-
$netid_match = $data[0];
207-
$uid_match = $data[1];
206+
$customMappingNetID = $data[0];
207+
$customMappingIDNumber = $data[1];
208208

209-
if ($uid == $netid_match || $netid == $netid_match) {
209+
if ($uid == $customMappingNetID || $netid == $customMappingNetID) {
210210
// found a match
211-
if (!$this->UIDNumInUse($uid_match) && !$this->GIDNumInUse($uid_match)) {
212-
return $uid_match;
211+
if (!$this->UIDNumInUse($customMappingIDNumber) && !$this->GIDNumInUse($customMappingIDNumber)) {
212+
return $CustomMappingIDNumber;
213213
}
214214
}
215215
}

0 commit comments

Comments
 (0)
Please sign in to comment.