Commit 1383edde authored by Taylor Otwell's avatar Taylor Otwell

Return empty string when null is passed to render helper.

parent 91998735
...@@ -435,6 +435,8 @@ function has_php($version) ...@@ -435,6 +435,8 @@ function has_php($version)
*/ */
function render($view, $data = array()) function render($view, $data = array())
{ {
if (is_null($view)) return '';
return Laravel\View::make($view, $data)->render(); return Laravel\View::make($view, $data)->render();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment