mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +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++;
|
$no++;
|
||||||
if (isset($backtrace[$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) : [];
|
$result['backtrace'] = $this->_debug_full_stack ? array_slice($backtrace, $no) : [];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue