diff --git a/lib/Cake/Utility/Debugger.php b/lib/Cake/Utility/Debugger.php index a90d658dc..fd7739492 100644 --- a/lib/Cake/Utility/Debugger.php +++ b/lib/Cake/Utility/Debugger.php @@ -646,7 +646,10 @@ class Debugger { $data += $defaults; $files = $this->trace(array('start' => $data['start'], 'format' => 'points')); - $code = $this->excerpt($files[0]['file'], $files[0]['line'] - 1, 1); + $code = ''; + if (isset($files[0]['file'])) { + $code = $this->excerpt($files[0]['file'], $files[0]['line'] - 1, 1); + } $trace = $this->trace(array('start' => $data['start'], 'depth' => '20')); $insertOpts = array('before' => '{:', 'after' => '}'); $context = array();