diff options
author | Jakub Senko <jakubsenko@gmail.com> | 2018-06-18 11:54:47 +0200 |
---|---|---|
committer | Jakub Senko <jakubsenko@gmail.com> | 2018-06-18 11:56:05 +0200 |
commit | 52f5e54d8a2a328123485272f18917199e06ec30 (patch) | |
tree | a91c229d330d5ff2de0444171d860e4ae042d740 /phpBB/phpbb/template/twig | |
parent | 02cbb864a5b6df62e978a69c368c8ec5ca35d8a3 (diff) | |
download | forums-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/phpbb/template/twig')
-rw-r--r-- | phpBB/phpbb/template/twig/extension.php | 2 |
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]; } |