mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 12:03:21 +01:00
[ticket/12249] Fix "Undefined variable: row" when editing profile
PHPBB3-12249
This commit is contained in:
parent
fed3e7c2de
commit
e88c61f85e
@ -69,7 +69,7 @@ abstract class type_string_common extends type_base
|
||||
$field_validate = ($field_type != 'text') ? $field_value : bbcode_nl2br($field_value);
|
||||
if (!preg_match('#^' . str_replace('\\\\', '\\', $field_data['field_validation']) . '$#i', $field_validate))
|
||||
{
|
||||
switch ($row['field_validation'])
|
||||
switch ($field_data['field_validation'])
|
||||
{
|
||||
case '[0-9]+':
|
||||
return $this->user->lang('FIELD_INVALID_CHARS_NUMBERS_ONLY', $this->get_field_name($field_data['lang_name']));
|
||||
|
Loading…
x
Reference in New Issue
Block a user