Adding output fix for dynamically-called methods

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3728 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2006-10-20 19:20:50 +00:00
parent 2993a8d412
commit 4caa838d09

View file

@ -145,6 +145,12 @@ class Object{
$back = array();
foreach ($backtrace as $trace) {
$t = '';
if (!isset($trace['line'])) {
$trace['line'] = '??';
}
if (!isset($trace['file'])) {
$trace['file'] = '[internal]';
}
if (isset($trace['class']) && !empty($trace['class'])) {
$t = $trace['class'].'::';
}