[HttpKernel] fixed the hinclude fragment renderer when the template is empty
This commit is contained in:
parent
3446cb219a
commit
5a2caa5e85
@ -65,7 +65,7 @@ class HIncludeFragmentRenderer extends RoutableFragmentRenderer
|
||||
}
|
||||
|
||||
$template = isset($options['default']) ? $options['default'] : $this->globalDefaultTemplate;
|
||||
if (null !== $this->templating && $this->templateExists($template)) {
|
||||
if (null !== $this->templating && $template && $this->templateExists($template)) {
|
||||
$content = $this->templating->render($template);
|
||||
} else {
|
||||
$content = $template;
|
||||
|
Reference in New Issue
Block a user