projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
f570044
)
made a cosmetic change (closes #1226)
author
Fabien Potencier
<fabien.potencier@gmail.com>
Tue, 15 Oct 2013 15:51:49 +0000 (17:51 +0200)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Tue, 15 Oct 2013 15:51:49 +0000 (17:51 +0200)
lib/Twig/Node/If.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Node/If.php
b/lib/Twig/Node/If.php
index
4296a8d
..
b42d107
100644
(file)
--- 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()