diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php index 3673b0b7fe..abd9ebf516 100644 --- a/phpBB/includes/template.php +++ b/phpBB/includes/template.php @@ -1,23 +1,15 @@ block_names, $tag_args); @@ -501,7 +510,7 @@ class template } $tag_template_php .= 'if ($_' . $tag_args . '_count) {'; - $tag_template_php .= 'for ($this->_' . $tag_args . '_i = 0; $this->_' . $tag_args . '_i < $_' . $tag_args . '_count; $this->_' . $tag_args . '_i++){'; + $tag_template_php .= 'for ($this->_' . $tag_args . '_i = ' . $loop_start . '; $this->_' . $tag_args . '_i < ' . $loop_end . '; $this->_' . $tag_args . '_i++){'; return $tag_template_php; }