diff --git a/phpBB/includes/functions_profile_fields.php b/phpBB/includes/functions_profile_fields.php index 9a2fc5ac77..d59a150db3 100644 --- a/phpBB/includes/functions_profile_fields.php +++ b/phpBB/includes/functions_profile_fields.php @@ -32,9 +32,10 @@ class custom_profile while ($row = $db->sql_fetchrow($result)) { $cp_data[$row['field_ident']] = $this->get_profile_field($row); + if (($cp_result = $this->validate_profile_field($row['field_type'], $cp_data[$row['field_ident']], $row)) !== false) { - $cp_error[$row['field_ident']] = $cp_result; + $cp_error[] = strtoupper($row['field_ident']) . "_$cp_result"; } } $db->sql_freeresult($result);