mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-22 00:21:02 +01:00
Merge branch '3.2.x'
* 3.2.x: [ticket/15666] Fix array key in twig lang() call
This commit is contained in:
commit
d84af59cad
@ -174,7 +174,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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user