aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-03-05 22:32:03 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-03-05 22:32:03 +0100
commite88c61f85e1556238a551f597bff71efff6c17c4 (patch)
treea3cc2e36d548aaeb7a03b640b61642d87083cd31
parentfed3e7c2deac8fca2ce30c5b2608726e5e7c8189 (diff)
downloadforums-e88c61f85e1556238a551f597bff71efff6c17c4.tar
forums-e88c61f85e1556238a551f597bff71efff6c17c4.tar.gz
forums-e88c61f85e1556238a551f597bff71efff6c17c4.tar.bz2
forums-e88c61f85e1556238a551f597bff71efff6c17c4.tar.xz
forums-e88c61f85e1556238a551f597bff71efff6c17c4.zip
[ticket/12249] Fix "Undefined variable: row" when editing profile
PHPBB3-12249
-rw-r--r--phpBB/phpbb/profilefields/type/type_string_common.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/profilefields/type/type_string_common.php b/phpBB/phpbb/profilefields/type/type_string_common.php
index d5fb8f4b97..f060fb1054 100644
--- a/phpBB/phpbb/profilefields/type/type_string_common.php
+++ b/phpBB/phpbb/profilefields/type/type_string_common.php
@@ -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']));