From 41dde6b88b6385faf4fcc41c181e6368d458b54b Mon Sep 17 00:00:00 2001 From: Simon Leary Date: Mon, 7 Apr 2025 12:46:43 -0400 Subject: [PATCH] rename confusing variables --- resources/lib/UnityLDAP.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/lib/UnityLDAP.php b/resources/lib/UnityLDAP.php index fc44cd4f..00f8a460 100644 --- a/resources/lib/UnityLDAP.php +++ b/resources/lib/UnityLDAP.php @@ -203,13 +203,13 @@ public function getUnassignedID($uid, $UnitySQL) // found csv file $handle = fopen($fileinfo->getPathname(), "r"); while (($data = fgetcsv($handle, 1000, ",")) !== false) { - $netid_match = $data[0]; - $uid_match = $data[1]; + $customMappingNetID = $data[0]; + $customMappingIDNumber = $data[1]; - if ($uid == $netid_match || $netid == $netid_match) { + if ($uid == $customMappingNetID || $netid == $customMappingNetID) { // found a match - if (!$this->UIDNumInUse($uid_match) && !$this->GIDNumInUse($uid_match)) { - return $uid_match; + if (!$this->UIDNumInUse($customMappingIDNumber) && !$this->GIDNumInUse($customMappingIDNumber)) { + return $CustomMappingIDNumber; } } }