diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2004-02-05 14:41:30 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2004-02-05 14:41:30 +0000 |
commit | 9e58a16cf56aeee0511b70f7ca7a1486b97e57b9 (patch) | |
tree | 3ddb6fc6221a81fa2c6b7ab8b91fff1d6e8c1060 /phpBB/includes/functions_profile_fields.php | |
parent | 173ac0529b25e15e09b80a5e4aef724901d7560c (diff) | |
download | forums-9e58a16cf56aeee0511b70f7ca7a1486b97e57b9.tar forums-9e58a16cf56aeee0511b70f7ca7a1486b97e57b9.tar.gz forums-9e58a16cf56aeee0511b70f7ca7a1486b97e57b9.tar.bz2 forums-9e58a16cf56aeee0511b70f7ca7a1486b97e57b9.tar.xz forums-9e58a16cf56aeee0511b70f7ca7a1486b97e57b9.zip |
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
Diffstat (limited to 'phpBB/includes/functions_profile_fields.php')
-rw-r--r-- | phpBB/includes/functions_profile_fields.php | 3 |
1 files changed, 2 insertions, 1 deletions
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); |