From be5a40f6a910f7fd28c73155fb507e5ce16d11a6 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Fri, 6 Nov 2015 10:25:14 +0100 Subject: [ticket/14272] Assign min/max for all allowed types PHPBB3-14272 --- phpBB/includes/functions_acp.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'phpBB') diff --git a/phpBB/includes/functions_acp.php b/phpBB/includes/functions_acp.php index bd12c3dd5c..8d5050d1bd 100644 --- a/phpBB/includes/functions_acp.php +++ b/phpBB/includes/functions_acp.php @@ -265,17 +265,17 @@ function build_cfg_template($tpl_type, $key, &$new, $config_key, $vars) break; case 'color': - case 'date': - case 'time': case 'datetime': case 'datetime-local': case 'month': - case 'range': case 'week': $tpl = ''; break; + case 'date': + case 'time': case 'number': + case 'range': $max = ''; $min = ( isset($tpl_type[1]) ) ? (int) $tpl_type[1] : false; if ( isset($tpl_type[2]) ) @@ -283,7 +283,7 @@ function build_cfg_template($tpl_type, $key, &$new, $config_key, $vars) $max = (int) $tpl_type[2]; } - $tpl = ''; + $tpl = ''; break; case 'dimension': -- cgit v1.2.1