mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix string offset error in PHP 5.4
This commit is contained in:
parent
015f9957be
commit
ed43c685b9
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue