forked from leftypol/leftypol
error.php: fix callback
This commit is contained in:
parent
8dad968be1
commit
44db356116
1 changed files with 3 additions and 3 deletions
|
@ -56,11 +56,11 @@ function error($message, $priority = true, $debug_stuff = false) {
|
|||
}
|
||||
$debug_stuff['backtrace'] = debug_backtrace();
|
||||
$pw = $config['db']['password'];
|
||||
$debug_callback = function(&$item) use (&$debug_callback, $pw) {
|
||||
$debug_callback = function($item) use (&$debug_callback, $pw) {
|
||||
if (is_array($item)) {
|
||||
return array_map($debug_callback, $item);
|
||||
$item = array_filter($item, $debug_callback);
|
||||
}
|
||||
return ($item == $pw ? 'hunter2' : $item);
|
||||
return ($item !== $pw || !$pw);
|
||||
};
|
||||
$debug_stuff = array_map($debug_callback, $debug_stuff);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue