mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Merge pull request #5249 from senky/ticket/15659
[ticket/15659] Fix retrieve_block_vars() * github.com:/phpbb/phpbb: [ticket/15659] Fix retrieve_block_vars()
This commit is contained in:
@@ -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];
|
||||
|
Reference in New Issue
Block a user