Fix first line of backtrace missing in query error display

This commit is contained in:
Kijin Sung 2025-07-22 21:54:22 +09:00
parent d544365399
commit 393c847cee
3 changed files with 3 additions and 3 deletions

View file

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