mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/12232] Fix a similar excessive pattern in the method.
PHPBB3-12232
This commit is contained in:
parent
5c3fc4840c
commit
99db2d9199
1 changed files with 2 additions and 1 deletions
|
@ -155,11 +155,12 @@ class context
|
||||||
// We're adding a new iteration to this block with the given
|
// We're adding a new iteration to this block with the given
|
||||||
// variable assignments.
|
// variable assignments.
|
||||||
$str[$blocks[$blockcount]][] = $vararray;
|
$str[$blocks[$blockcount]][] = $vararray;
|
||||||
|
$s_num_rows = sizeof($str[$blocks[$blockcount]]);
|
||||||
|
|
||||||
// Set S_NUM_ROWS
|
// Set S_NUM_ROWS
|
||||||
foreach ($str[$blocks[$blockcount]] as &$mod_block)
|
foreach ($str[$blocks[$blockcount]] as &$mod_block)
|
||||||
{
|
{
|
||||||
$mod_block['S_NUM_ROWS'] = sizeof($str[$blocks[$blockcount]]);
|
$mod_block['S_NUM_ROWS'] = $s_num_rows;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue