Skip to content

Commit

Permalink
Merge branch '3.2.x'
Browse files Browse the repository at this point in the history
* 3.2.x:
  [ticket/15666] Fix array key in twig lang() call
  • Loading branch information
Nicofuma committed Jul 8, 2018
2 parents c565688 + 71905e5 commit d84af59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpBB/phpbb/template/twig/extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function lang()

$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];
}
Expand Down

0 comments on commit d84af59

Please sign in to comment.