mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
2993a8d412
commit
4caa838d09
1 changed files with 6 additions and 0 deletions
|
@ -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'].'::';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue