aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-01-17 10:20:00 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-01-17 10:20:00 +0100
commitae38cfaa701458aaebbc0991512d8788db07f9cb (patch)
tree7dd83af86f677af35a55787e7f04925fedad1543 /phpBB/includes
parent5e2ffe0d5cc4b7280b0bf51202cdbde4fca1e03b (diff)
downloadforums-ae38cfaa701458aaebbc0991512d8788db07f9cb.tar
forums-ae38cfaa701458aaebbc0991512d8788db07f9cb.tar.gz
forums-ae38cfaa701458aaebbc0991512d8788db07f9cb.tar.bz2
forums-ae38cfaa701458aaebbc0991512d8788db07f9cb.tar.xz
forums-ae38cfaa701458aaebbc0991512d8788db07f9cb.zip
[ticket/11201] Move type specific error messages to type class
PHPBB3-11201
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/acp/acp_profile.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php
index e682996ba8..39d1c70990 100644
--- a/phpBB/includes/acp/acp_profile.php
+++ b/phpBB/includes/acp/acp_profile.php
@@ -623,15 +623,7 @@ class acp_profile
$error[] = $user->lang['EMPTY_USER_FIELD_NAME'];
}
- if ($field_type == FIELD_DROPDOWN && !sizeof($cp->vars['lang_options']))
- {
- $error[] = $user->lang['NO_FIELD_ENTRIES'];
- }
-
- if ($field_type == FIELD_BOOL && (empty($cp->vars['lang_options'][0]) || empty($cp->vars['lang_options'][1])))
- {
- $error[] = $user->lang['NO_FIELD_ENTRIES'];
- }
+ $error = $profile_field->validate_options_on_submit($error, $cp->vars);
// Check for already existing field ident
if ($action != 'edit')