Fix display warning/errors (#496)
* prevent filling debug param when debug is off * fix php warning: "$item" must be passed by reference
This commit is contained in:
parent
2216a0155c
commit
02edb9a896
|
@ -105,7 +105,7 @@ function error($message, $priority = true, $debug_stuff = false) {
|
|||
}
|
||||
|
||||
$pw = $config['db']['password'];
|
||||
$debug_callback = function(&$item) use (&$debug_callback, $pw) {
|
||||
$debug_callback = function($item) use (&$debug_callback, $pw) {
|
||||
if (is_array($item)) {
|
||||
$item = array_filter($item, $debug_callback);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user