diff --git a/phpBB/includes/functions_template.php b/phpBB/includes/functions_template.php index 05e1d5e2b6..96d0bf740b 100644 --- a/phpBB/includes/functions_template.php +++ b/phpBB/includes/functions_template.php @@ -473,7 +473,7 @@ class template_compile { preg_match('#true|false|\.#i', $match[4], $type); - switch (strtolower($type[1])) + switch (strtolower($type[0])) { case 'true': case 'false':