1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/15659] Fix retrieve_block_vars()

PHPBB3-15659
This commit is contained in:
Jakub Senko
2018-06-18 11:20:18 +02:00
parent 02cbb864a5
commit b5daa91650
2 changed files with 106 additions and 0 deletions

View File

@@ -274,6 +274,11 @@ class context
{
$name = substr($blocks[$i], 0, $pos);
if (empty($block[$name]))
{
return array();
}
if (strpos($blocks[$i], '[]') === $pos)
{
$index = count($block[$name]) - 1;
@@ -286,6 +291,11 @@ class context
else
{
$name = $blocks[$i];
if (empty($block[$name]))
{
return array();
}
$index = count($block[$name]) - 1;
}
$block = $block[$name];