Return empty string when null is passed to render helper.

This commit is contained in:
Taylor Otwell 2012-03-24 09:25:33 -05:00
parent 91998735b9
commit 1383edde39
1 changed files with 2 additions and 0 deletions

View File

@ -435,6 +435,8 @@ function has_php($version)
*/
function render($view, $data = array())
{
if (is_null($view)) return '';
return Laravel\View::make($view, $data)->render();
}