Fix warning when query is executed from outside of a class or function

This commit is contained in:
Kijin Sung 2023-02-06 01:57:18 +09:00
parent 9aec92fbfd
commit 5ecf8ea99b

View file

@ -1193,7 +1193,7 @@ class DB
$no++;
if (isset($backtrace[$no]))
{
$result['called_method'] = $backtrace[$no]['class'] . $backtrace[$no]['type'] . $backtrace[$no]['function'];
$result['called_method'] = ($backtrace[$no]['class'] ?? '') . ($backtrace[$no]['type'] ?? '') . ($backtrace[$no]['function'] ?? '');
$result['backtrace'] = $this->_debug_full_stack ? array_slice($backtrace, $no) : [];
}
else