From bde52e28f8765a73265b1ff76bce1c117a73c442 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Mon, 21 Apr 2025 11:44:49 +0200 Subject: [PATCH] [ticket/17493] Move cpf update outside if PHPBB-17493 --- phpBB/includes/ucp/ucp_profile.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php index a5a1fe3d70..93f98d613f 100644 --- a/phpBB/includes/ucp/ucp_profile.php +++ b/phpBB/includes/ucp/ucp_profile.php @@ -383,11 +383,11 @@ class ucp_profile SET ' . $db->sql_build_array('UPDATE', $sql_ary) . ' WHERE user_id = ' . $user->data['user_id']; $db->sql_query($sql); - - // Update Custom Fields - $cp->update_profile_field_data($user->data['user_id'], $cp_data); } + // Always update custom fields + $cp->update_profile_field_data($user->data['user_id'], $cp_data); + meta_refresh(3, $this->u_action); $message = $user->lang['PROFILE_UPDATED'] . '

' . sprintf($user->lang['RETURN_UCP'], '', ''); trigger_error($message);