diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-10-22 15:02:50 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-10-22 15:02:50 +0000 |
commit | b3ab2173a495cf325d822a528b86875ee50d8a6c (patch) | |
tree | 2d847c5eeed48b6c50edab5191420fbd97e8646f /phpBB/includes/acp/acp_profile.php | |
parent | 0de6e24865900ed968c9dabd3d7329a59e6be8b3 (diff) | |
download | forums-b3ab2173a495cf325d822a528b86875ee50d8a6c.tar forums-b3ab2173a495cf325d822a528b86875ee50d8a6c.tar.gz forums-b3ab2173a495cf325d822a528b86875ee50d8a6c.tar.bz2 forums-b3ab2173a495cf325d822a528b86875ee50d8a6c.tar.xz forums-b3ab2173a495cf325d822a528b86875ee50d8a6c.zip |
#4896
git-svn-id: file:///svn/phpbb/trunk@6520 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_profile.php')
-rw-r--r-- | phpBB/includes/acp/acp_profile.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php index 03b1cf3b82..45ded74f5d 100644 --- a/phpBB/includes/acp/acp_profile.php +++ b/phpBB/includes/acp/acp_profile.php @@ -364,13 +364,7 @@ class acp_profile $cp->vars['lang_name'] = request_var('lang_name', $field_row['lang_name'], true); $cp->vars['lang_explain'] = request_var('lang_explain', $field_row['lang_explain'], true); $cp->vars['lang_default_value'] = request_var('lang_default_value', $field_row['lang_default_value'], true); - - if (strlen($cp->vars['field_ident']) > 17) - { - $error[] = $user->lang['INVALID_FIELD_IDENT_LEN']; - } - // Field option... if (isset($_REQUEST['field_option'])) { @@ -549,6 +543,11 @@ class acp_profile $error[] = $user->lang['INVALID_CHARS_FIELD_IDENT']; } + if (strlen($cp->vars['field_ident']) > 17) + { + $error[] = $user->lang['INVALID_FIELD_IDENT_LEN']; + } + if ($cp->vars['lang_name'] == '') { $error[] = $user->lang['EMPTY_USER_FIELD_NAME']; |