Browse Source

Return empty string when null is passed to render helper.

Taylor Otwell 12 years ago
parent
commit
1383edde39
1 changed files with 2 additions and 0 deletions
  1. 2 0
      laravel/helpers.php

+ 2 - 0
laravel/helpers.php

@@ -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();
 }