Browse code

Make sure twig_include returns a string

Chris Wilkinson authored on 05/10/2018 06:46:05
Showing 1 changed files
... ...
@@ -1527,7 +1527,7 @@ function twig_include(Twig_Environment $env, $context, $template, $variables = a
1527 1527
         }
1528 1528
     }
1529 1529
 
1530
-    $result = null;
1530
+    $result = '';
1531 1531
     try {
1532 1532
         $result = $env->resolveTemplate($template)->render($variables);
1533 1533
     } catch (Twig_Error_Loader $e) {