1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-05 15:16:16 +02:00

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
This commit is contained in:
Paul S. Owen 2004-02-05 14:41:30 +00:00
parent 173ac0529b
commit 9e58a16cf5

View File

@ -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);