diff --git a/Sources/Profile.php b/Sources/Profile.php index 8eff1afa83..a582220e17 100644 --- a/Sources/Profile.php +++ b/Sources/Profile.php @@ -2179,9 +2179,6 @@ protected function prepareToSaveStandardFields(): void // Set the save variable. $this->new_data[$db_key] = $_POST[$key]; - // And update the user profile. - $this->data[$key] = $this->new_data[$key]; - // Are we logging it? if (!empty($field['log_change']) && isset($this->data[$key])) { $this->log_changes[] = [ @@ -2195,6 +2192,9 @@ protected function prepareToSaveStandardFields(): void ], ]; } + + // And update the user profile. + $this->data[$key] = $this->new_data[$db_key]; } // Logging group changes are a bit different...