From 4caa838d09b13c71fda983c856f644bff4f784a8 Mon Sep 17 00:00:00 2001 From: nate Date: Fri, 20 Oct 2006 19:20:50 +0000 Subject: [PATCH] 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 --- cake/libs/object.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cake/libs/object.php b/cake/libs/object.php index fcbf8c7c9..c03af0116 100644 --- a/cake/libs/object.php +++ b/cake/libs/object.php @@ -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'].'::'; }