diff --git a/phpBB/includes/functions_acp.php b/phpBB/includes/functions_acp.php
index a013af2c89..3a02dcd503 100644
--- a/phpBB/includes/functions_acp.php
+++ b/phpBB/includes/functions_acp.php
@@ -284,27 +284,17 @@ function build_cfg_template($tpl_type, $key, &$new_ary, $config_key, $vars)
case 'time':
case 'number':
case 'range':
- $max = '';
- $min = ( isset($tpl_type[1]) ) ? (int) $tpl_type[1] : false;
- if ( isset($tpl_type[2]) )
- {
- $max = (int) $tpl_type[2];
- }
+ $min = isset($tpl_type[1]) ? (int) $tpl_type[1] : false;
+ $max = isset($tpl_type[2]) ? (int) $tpl_type[2] : false;
- $tpl = '';
+ $tpl = '';
break;
case 'dimension':
- $max = '';
+ $min = isset($tpl_type[1]) ? (int) $tpl_type[1] : false;
+ $max = isset($tpl_type[2]) ? (int) $tpl_type[2] : false;
- $min = (int) $tpl_type[1];
-
- if ( isset($tpl_type[2]) )
- {
- $max = (int) $tpl_type[2];
- }
-
- $tpl = ' x ';
+ $tpl = ' x ';
break;
case 'textarea':