diff options
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -210,7 +210,7 @@ function error($p = array(), $body = null, $to = null) # $body and $to deprecate mail($p['to'], $p['title'], $body, ($cc = $GLOBALS['it_defaultconfig']['error_cc']) ? "Cc: $cc" : null); } else if ($_SERVER['REMOTE_ADDR']) # toscreen mode: web - echo "<pre>{$p['title']}\n$body</pre>"; + echo "<pre>{$p['title']}\n".rtrim($body)."</pre>"; else # toscreen mode: shell (outputs to stderr) error_log("it::error: " . $p['title'] . " in " . ($trace ? $trace : "{$p['file']}:{$p['line']}") . " Url: $url " . (EDC('verbose') ? D($p['locals']) : "")); } |