mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-04 22:58:10 +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:
parent
173ac0529b
commit
9e58a16cf5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user