Browse Source

Fix output buffer checking bug.

Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
Taylor Otwell 12 years ago
parent
commit
5b3031adb0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/error.php

+ 1 - 1
laravel/error.php

@@ -12,7 +12,7 @@ class Error {
 	{
 		static::log($exception);
 
-		ob_end_clean();
+		ob_get_level() and ob_end_clean();
 
 		// If detailed errors are enabled, we'll just format the exception into
 		// a simple error message and display it on the screen. We don't use a