Fix string offset error in PHP 5.4

This commit is contained in:
mark_story 2011-12-29 22:01:46 -05:00
parent 015f9957be
commit ed43c685b9

View file

@ -646,7 +646,10 @@ class Debugger {
$data += $defaults; $data += $defaults;
$files = $this->trace(array('start' => $data['start'], 'format' => 'points')); $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')); $trace = $this->trace(array('start' => $data['start'], 'depth' => '20'));
$insertOpts = array('before' => '{:', 'after' => '}'); $insertOpts = array('before' => '{:', 'after' => '}');
$context = array(); $context = array();