We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0dbdc1a + 6133888 commit 775f50cCopy full SHA for 775f50c
1 file changed
system/Debug/Toolbar/Collectors/Database.php
@@ -141,7 +141,10 @@ public function display(): array
141
// Clean up the file paths
142
$traceLine['file'] = str_ireplace(APPPATH, 'APPPATH/', $traceLine['file']);
143
$traceLine['file'] = str_ireplace(SYSTEMPATH, 'SYSTEMPATH/', $traceLine['file']);
144
- $traceLine['file'] = str_ireplace(VENDORPATH, 'VENDORPATH/', $traceLine['file']);
+ if (defined('VENDORPATH')) {
145
+ // VENDORPATH is not defined unless `vendor/autoload.php` exists
146
+ $traceLine['file'] = str_ireplace(VENDORPATH, 'VENDORPATH/', $traceLine['file']);
147
+ }
148
$traceLine['file'] = str_ireplace(ROOTPATH, 'ROOTPATH/', $traceLine['file']);
149
150
if (strpos($traceLine['file'], 'SYSTEMPATH') !== false) {
0 commit comments