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
This commit is contained in:
gwoo 2008-01-20 22:25:20 +00:00
parent 39eb8a9218
commit 70ebd40cdd

View file

@ -493,9 +493,11 @@ class Debugger extends Object {
e("</pre>");
}
e("<div id=\"CakeErrorCode" . count($_this->errors) . "\" class=\"cake-code-dump\" style=\"display: none;\">");
pr(implode("\n", $listing) . "\n", false);
e('</div>');
if (!empty($listing)) {
e("<div id=\"CakeErrorCode" . count($_this->errors) . "\" class=\"cake-code-dump\" style=\"display: none;\">");
pr(implode("\n", $listing) . "\n", false);
e('</div>');
}
pr($trace, false);
e('</div>');
}