mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
Merge branch '3.2.x'
This commit is contained in:
commit
c12b4320eb
1 changed files with 4 additions and 4 deletions
|
@ -365,15 +365,15 @@ class context
|
||||||
if ($mode == 'insert')
|
if ($mode == 'insert')
|
||||||
{
|
{
|
||||||
// Make sure we are not exceeding the last iteration
|
// Make sure we are not exceeding the last iteration
|
||||||
if ($key >= sizeof($this->tpldata[$blockname]))
|
if ($key >= sizeof($block))
|
||||||
{
|
{
|
||||||
$key = sizeof($this->tpldata[$blockname]);
|
$key = sizeof($block);
|
||||||
unset($this->tpldata[$blockname][($key - 1)]['S_LAST_ROW']);
|
unset($block[($key - 1)]['S_LAST_ROW']);
|
||||||
$vararray['S_LAST_ROW'] = true;
|
$vararray['S_LAST_ROW'] = true;
|
||||||
}
|
}
|
||||||
else if ($key === 0)
|
else if ($key === 0)
|
||||||
{
|
{
|
||||||
unset($this->tpldata[$blockname][0]['S_FIRST_ROW']);
|
unset($block[0]['S_FIRST_ROW']);
|
||||||
$vararray['S_FIRST_ROW'] = true;
|
$vararray['S_FIRST_ROW'] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue