From 3d67b59238d7f2a538bc5862dd89f883799dfbcd Mon Sep 17 00:00:00 2001 From: flashwave Date: Sat, 22 Jul 2023 21:25:45 +0000 Subject: [PATCH] Attempt 2 at fixing the profile fields issue (this one actually fixes the issue!) --- public-legacy/profile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public-legacy/profile.php b/public-legacy/profile.php index 5b4be09..b96e97e 100644 --- a/public-legacy/profile.php +++ b/public-legacy/profile.php @@ -394,6 +394,8 @@ switch($profileMode) { // using field infos as the basis for now, uses the correct ordering foreach($profileFieldInfos as $fieldInfo) { + unset($fieldValue); + foreach($profileFieldValues as $fieldValueTest) if($fieldValueTest->getFieldId() === $fieldInfo->getId()) { $fieldValue = $fieldValueTest; @@ -414,8 +416,6 @@ switch($profileMode) { if($fieldFormat->hasLinkFormat()) $profileFieldLinkValues[$fieldName] = $fieldFormat->formatLink($fieldValue->getValue()); } - - unset($fieldValue); } Template::set([