aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorSenky <jakubsenko@gmail.com>2012-08-20 09:25:25 +0200
committerSenky <jakubsenko@gmail.com>2013-05-20 18:39:54 +0200
commit8993fa940f9920b161639e39c483a1476a9c71ab (patch)
tree39661cf5d5ae4a7258eb1008a6e2ed47102e9b5a /phpBB/includes
parent05ebbbcd6acf3d9e808734ff0ded6a94bd64a9dc (diff)
downloadforums-8993fa940f9920b161639e39c483a1476a9c71ab.tar
forums-8993fa940f9920b161639e39c483a1476a9c71ab.tar.gz
forums-8993fa940f9920b161639e39c483a1476a9c71ab.tar.bz2
forums-8993fa940f9920b161639e39c483a1476a9c71ab.tar.xz
forums-8993fa940f9920b161639e39c483a1476a9c71ab.zip
[ticket/11010] fixing problems with 4th parameter in number type
PHPBB3-11010
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_acp.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions_acp.php b/phpBB/includes/functions_acp.php
index 38ddff0c38..3aca1af229 100644
--- a/phpBB/includes/functions_acp.php
+++ b/phpBB/includes/functions_acp.php
@@ -261,7 +261,8 @@ function build_cfg_template($tpl_type, $key, &$new, $config_key, $vars)
$min = (int) $tpl_type[1];
$max = $maxlength = (int) $tpl_type[2];
- if ($tpl_type[3] != 'true')
+ // $tpl_type[3] is not always present
+ if (!isset($tpl_type[3]) || (isset($tpl_type[3]) && $tpl_type[3] != 'true'))
{
$max = str_repeat('9', $max);
}