summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2007-11-29 18:51:06 +0000
committerUrban Müller2007-11-29 18:51:06 +0000
commit9f66343f9713a5d10bf3a59f59295d09bde528c3 (patch)
tree1e65b4e7956739489304f41623a1deb9613f9d6d /it.class
parent5d201ba6e58dee377303ae8f320c554cc0505c1b (diff)
downloaditools-9f66343f9713a5d10bf3a59f59295d09bde528c3.tar.gz
itools-9f66343f9713a5d10bf3a59f59295d09bde528c3.tar.bz2
itools-9f66343f9713a5d10bf3a59f59295d09bde528c3.zip
no double newline
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 6d021a0..cc0de0a 100644
--- a/it.class
+++ b/it.class
@@ -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']) : ""));
}