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([