Fix warning when HTTP requests are made from outside of a class

This commit is contained in:
Kijin Sung 2024-05-24 23:19:02 +09:00
parent dbb4d1716e
commit 99d7c3d733

View file

@ -301,7 +301,7 @@ class HTTP
$next = $no + 1;
if (isset($bt[$next]))
{
$log['called_method'] = $bt[$next]['class'].$bt[$next]['type'].$bt[$next]['function'];
$log['called_method'] = ($bt[$next]['class'] ?? '') . ($bt[$next]['type'] ?? '') . ($bt[$next]['function'] ?? '');
$log['backtrace'] = array_slice($bt, $next, 1);
}
break;