Skip to content

Commit

Permalink
Make getRenderedTemplate always return a string (not bool) (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandoorn authored and xyNNN committed Oct 15, 2017
1 parent d1374c3 commit 8d0418d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Twig/GoogleTagManagerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private function getTemplate($area)
private function getRenderedTemplate(\Twig_Environment $twig, $area)
{
if (!$this->helper->isEnabled()) {
return false;
return '';
}

return $twig->render(
Expand Down

0 comments on commit 8d0418d

Please sign in to comment.