aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJakub Senko <jakubsenko@gmail.com>2018-06-18 11:54:47 +0200
committerJakub Senko <jakubsenko@gmail.com>2018-06-18 11:56:05 +0200
commit52f5e54d8a2a328123485272f18917199e06ec30 (patch)
treea91c229d330d5ff2de0444171d860e4ae042d740 /phpBB
parent02cbb864a5b6df62e978a69c368c8ec5ca35d8a3 (diff)
downloadforums-52f5e54d8a2a328123485272f18917199e06ec30.tar
forums-52f5e54d8a2a328123485272f18917199e06ec30.tar.gz
forums-52f5e54d8a2a328123485272f18917199e06ec30.tar.bz2
forums-52f5e54d8a2a328123485272f18917199e06ec30.tar.xz
forums-52f5e54d8a2a328123485272f18917199e06ec30.zip
[ticket/15666] Fix array key in twig lang() call
PHPBB3-15666
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/phpbb/template/twig/extension.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/template/twig/extension.php b/phpBB/phpbb/template/twig/extension.php
index 1aa7717470..f6f8e03ca2 100644
--- a/phpBB/phpbb/template/twig/extension.php
+++ b/phpBB/phpbb/template/twig/extension.php
@@ -172,7 +172,7 @@ class extension extends \Twig_Extension
$context_vars = $this->context->get_root_ref();
- if (isset($context_vars['L_' . $key]))
+ if (is_string($key) && isset($context_vars['L_' . $key]))
{
return $context_vars['L_' . $key];
}