* [refac] fix undefined index error.

This commit is contained in:
liugang
2025-06-17 10:44:34 +08:00
parent 0176a7a7f2
commit c3d8128c18
+1 -1
View File
@@ -1958,7 +1958,7 @@ class baseDAO
$profile->Duration = round((float)$profile->Duration, 4);
$profile->Explain = [];
$profile->Error = '';
$profile->Code = str_replace($basePath, '', $traces[$key]);
$profile->Code = str_replace($basePath, '', $traces[$key] ?? '');
$sql = trim($profile->Query);
if(stripos($sql, 'select') !== 0