Return empty string when null is passed to render helper.
This commit is contained in:
parent
91998735b9
commit
1383edde39
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue