mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix warning when query is executed from outside of a class or function
This commit is contained in:
parent
9aec92fbfd
commit
5ecf8ea99b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue