aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/template/context.php
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2014-02-27 22:27:09 -0800
committerCesar G <prototech91@gmail.com>2014-02-27 22:28:43 -0800
commit99db2d91996c9beb40ff9b635c69497941a69ffb (patch)
tree303f437d8b1ed290ab9e15330fcb009c24b0eaa2 /phpBB/phpbb/template/context.php
parent5c3fc4840c6c5729b7144b8f268990684f151b12 (diff)
downloadforums-99db2d91996c9beb40ff9b635c69497941a69ffb.tar
forums-99db2d91996c9beb40ff9b635c69497941a69ffb.tar.gz
forums-99db2d91996c9beb40ff9b635c69497941a69ffb.tar.bz2
forums-99db2d91996c9beb40ff9b635c69497941a69ffb.tar.xz
forums-99db2d91996c9beb40ff9b635c69497941a69ffb.zip
[ticket/12232] Fix a similar excessive pattern in the method.
PHPBB3-12232
Diffstat (limited to 'phpBB/phpbb/template/context.php')
-rw-r--r--phpBB/phpbb/template/context.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/phpbb/template/context.php b/phpBB/phpbb/template/context.php
index ef01034c52..0b929f4934 100644
--- a/phpBB/phpbb/template/context.php
+++ b/phpBB/phpbb/template/context.php
@@ -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