From 70ebd40cddaed8e55cdf91b4097fd9b7a7a314a1 Mon Sep 17 00:00:00 2001 From: gwoo Date: Sun, 20 Jan 2008 22:25:20 +0000 Subject: [PATCH] fix for empty var in debugger git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6396 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/debugger.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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(''); }