1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-19 15:22:08 +02:00

[ticket/12232] Fix a similar excessive pattern in the method.

PHPBB3-12232
This commit is contained in:
Cesar G 2014-02-27 22:27:09 -08:00
parent 5c3fc4840c
commit 99db2d9199

View File

@ -155,11 +155,12 @@ class context
// We're adding a new iteration to this block with the given
// variable assignments.
$str[$blocks[$blockcount]][] = $vararray;
$s_num_rows = sizeof($str[$blocks[$blockcount]]);
// Set S_NUM_ROWS
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