Commit 5218f79d authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

If the message we are debugging is boolean, output a better version of it

so it can be plainly seen.
parent d27642eb
......@@ -90,7 +90,12 @@ function log_message ($message, $loglevel, $escape, $file=null, $line=null, $tra
$textbacktrace = $htmlbacktrace = '';
$loglines = explode("\n", print_r($message, true));
if (is_bool($message)) {
$loglines = array(($message ? 'bool(true)' : 'bool(false)'));
else {
$loglines = explode("\n", print_r($message, true));
// Make a prefix for each line, if we are logging a normal debug/info/warn message
if ($loglevel != LOG_LEVEL_ENVIRON && function_exists('get_config')) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment