[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 // 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