projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6e97162
)
fixed inherited templates when an empty body
author
Fabien Potencier
<fabien.potencier@gmail.com>
Tue, 26 Jul 2011 15:32:54 +0000 (17:32 +0200)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Tue, 26 Jul 2011 15:32:54 +0000 (17:32 +0200)
lib/Twig/Parser.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Parser.php
b/lib/Twig/Parser.php
index
fc41374
..
fea244e
100644
(file)
--- a/
lib/Twig/Parser.php
+++ b/
lib/Twig/Parser.php
@@
-81,7
+81,9
@@
class Twig_Parser implements Twig_ParserInterface
$body = $this->subparse(null);
if (null !== $this->parent) {
- $body = $this->filterBodyNodes($body);
+ if (null === $body = $this->filterBodyNodes($body)) {
+ $body = new Twig_Node();
+ }
}
} catch (Twig_Error_Syntax $e) {
if (null === $e->getTemplateFile()) {