mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 03:48:53 +00: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
1 changed files with 2 additions and 1 deletions
|
@ -32,9 +32,10 @@ class custom_profile
|
||||||
while ($row = $db->sql_fetchrow($result))
|
while ($row = $db->sql_fetchrow($result))
|
||||||
{
|
{
|
||||||
$cp_data[$row['field_ident']] = $this->get_profile_field($row);
|
$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)
|
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);
|
$db->sql_freeresult($result);
|
||||||
|
|
Loading…
Add table
Reference in a new issue