From 5b3031adb059ca0d5eb0f6c95233ed3248869d93 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 4 Mar 2012 23:06:17 -0600 Subject: [PATCH] Fix output buffer checking bug. Signed-off-by: Taylor Otwell --- laravel/error.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/error.php b/laravel/error.php index 23574efaf6d..bf668d8a414 100644 --- a/laravel/error.php +++ b/laravel/error.php @@ -12,7 +12,7 @@ public static function exception($exception) { 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