phpBB

Code Changes

File: phpbb/template/context.php

  Unmodified   Added   Modified   Removed
Line 273Line 273
			if (($pos = strpos($blocks[$i], '[')) !== false)
{
$name = substr($blocks[$i], 0, $pos);

			if (($pos = strpos($blocks[$i], '[')) !== false)
{
$name = substr($blocks[$i], 0, $pos);

 

if (empty($block[$name]))
{
return array();
}


if (strpos($blocks[$i], '[]') === $pos)
{


if (strpos($blocks[$i], '[]') === $pos)
{

Line 286Line 291
			else
{
$name = $blocks[$i];

			else
{
$name = $blocks[$i];

 
				if (empty($block[$name]))
{
return array();
}


				$index = count($block[$name]) - 1;
}
$block = $block[$name];

				$index = count($block[$name]) - 1;
}
$block = $block[$name];