From b3ab2173a495cf325d822a528b86875ee50d8a6c Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 22 Oct 2006 15:02:50 +0000 Subject: #4896 git-svn-id: file:///svn/phpbb/trunk@6520 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/acp/acp_profile.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'phpBB/includes/acp/acp_profile.php') 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']; -- cgit v1.2.1