From 9e58a16cf56aeee0511b70f7ca7a1486b97e57b9 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Thu, 5 Feb 2004 14:41:30 +0000 Subject: [PATCH] Changed error string array return ... hopefully nothing "different" was planned for this. This method "fits in" with how UCP modules handle errors. git-svn-id: file:///svn/phpbb/trunk@4800 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_profile_fields.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);