1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-21 16:10:38 +01:00

[ticket/15666] Fix array key in twig lang() call

PHPBB3-15666
This commit is contained in:
Jakub Senko 2018-06-18 11:54:47 +02:00
parent 02cbb864a5
commit 52f5e54d8a
No known key found for this signature in database
GPG Key ID: 6A7C328CD66EC21E

View File

@ -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];
}