From: Fabien Potencier Date: Thu, 28 Jul 2011 12:32:07 +0000 (+0200) Subject: fixed Parser bug X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=ef485402e04a419cc2f6f52b5d795d750b016fa4;p=web%2Fkonrad%2Ftwig.git fixed Parser bug --- diff --git a/lib/Twig/Parser.php b/lib/Twig/Parser.php index fea244e..0649c7b 100644 --- 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); } }