mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-23 07:50:16 +02:00
[ticket/11010] fixing problems with 4th parameter in number type
PHPBB3-11010
This commit is contained in:
parent
05ebbbcd6a
commit
8993fa940f
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user