mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
Fix warning in database logging routine
https://www.xetown.com/qna/610874
This commit is contained in:
parent
60564b13f4
commit
1233be446c
1 changed files with 1 additions and 1 deletions
|
|
@ -370,7 +370,7 @@ class DB
|
||||||
$log['time'] = date('Y-m-d H:i:s');
|
$log['time'] = date('Y-m-d H:i:s');
|
||||||
$log['backtrace'] = array();
|
$log['backtrace'] = array();
|
||||||
|
|
||||||
if (config('debug.enabled') && ($this->isError() || in_array('queries', config('debug.display_content'))))
|
if (config('debug.enabled') && ($this->isError() || in_array('queries', config('debug.display_content') ?: array())))
|
||||||
{
|
{
|
||||||
$bt = debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS);
|
$bt = debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS);
|
||||||
foreach($bt as $no => $call)
|
foreach($bt as $no => $call)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue