projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
c7be524
)
fixed Parser bug
author
Fabien Potencier
<fabien.potencier@gmail.com>
Thu, 28 Jul 2011 12:32:07 +0000 (14:32 +0200)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Thu, 28 Jul 2011 12:32:07 +0000 (14:32 +0200)
lib/Twig/Parser.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Parser.php
b/lib/Twig/Parser.php
index
fea244e
..
0649c7b
100644
(file)
--- a/
lib/Twig/Parser.php
+++ b/
lib/Twig/Parser.php
@@
-310,7
+310,7
@@
class Twig_Parser implements Twig_ParserInterface
}
foreach ($node as $k => $n) {
- if (null === $n = $this->filterBodyNodes($n)) {
+ if ($n instanceof Twig_NodeInterface && null === $n = $this->filterBodyNodes($n)) {
$node->removeNode($k);
}
}