From f6058823f12e776503f3943afa3f716bb62a3aa9 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sat, 22 Jul 2023 20:54:52 +0000 Subject: [PATCH] Fixed error 500 on profiles when filling certain fields in specific conditions. --- public-legacy/profile.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public-legacy/profile.php b/public-legacy/profile.php index fe3916e..5b4be09 100644 --- a/public-legacy/profile.php +++ b/public-legacy/profile.php @@ -94,6 +94,8 @@ if($isEditing) { $profileFieldsSetValues[] = $fieldValue; } else $notices[] = sprintf('%s isn\'t properly formatted.', $fieldInfo->getTitle()); + + unset($fieldName, $fieldValue, $fieldInfo); } if(!empty($profileFieldsRemove))