Added sanity check to class index of backtrace return
Seems there's a scenario within PICKLES that provides a backtrace report that lacks a class name (even though the file being referenced is a class). If no class is set it's simply omitted.
This commit is contained in:
parent
4a41a07635
commit
8e0fe3dc3d
2 changed files with 8 additions and 2 deletions
|
@ -157,7 +157,10 @@ class Database_PDO_Common extends Database_Common
|
|||
|
||||
foreach ($backtrace as $file)
|
||||
{
|
||||
$files[] = $file['class'] . ':' . $file['line'];
|
||||
if (isset($file['class']))
|
||||
{
|
||||
$files[] = $file['class'] . ':' . $file['line'];
|
||||
}
|
||||
}
|
||||
|
||||
$sql .= "\n" . '/* [' . implode('|', $files) . '] */';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue