diff --git a/cake/libs/debugger.php b/cake/libs/debugger.php index c139f4e89..ed2fa0126 100644 --- a/cake/libs/debugger.php +++ b/cake/libs/debugger.php @@ -493,9 +493,11 @@ class Debugger extends Object { e(""); } - e("
errors) . "\" class=\"cake-code-dump\" style=\"display: none;\">"); - pr(implode("\n", $listing) . "\n", false); - e('
'); + if (!empty($listing)) { + e("
errors) . "\" class=\"cake-code-dump\" style=\"display: none;\">"); + pr(implode("\n", $listing) . "\n", false); + e('
'); + } pr($trace, false); e(''); }