From 1f2103f9ed07d766b061a7aa1a81708f3474f350 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 15 Oct 2013 17:51:49 +0200 Subject: [PATCH] made a cosmetic change (closes #1226) --- lib/Twig/Node/If.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/Twig/Node/If.php b/lib/Twig/Node/If.php index 4296a8d..b42d107 100644 --- a/lib/Twig/Node/If.php +++ b/lib/Twig/Node/If.php @@ -30,7 +30,7 @@ class Twig_Node_If extends Twig_Node public function compile(Twig_Compiler $compiler) { $compiler->addDebugInfo($this); - for ($i = 0; $i < count($this->getNode('tests')); $i += 2) { + for ($i = 0, $count = count($this->getNode('tests')); $i < $count; $i += 2) { if ($i > 0) { $compiler ->outdent() -- 1.7.2.5