summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2016-04-07 17:41:58 +0200
committerUrban Müller2016-04-07 17:41:58 +0200
commit28fc7c3a971fb7ecf66a5d7d764007e17d2ff899 (patch)
treed40c345fef21daf745b221c726e400d86d0bfcb9
parent0e83fefb5fac1601e4f485ae5a275f0f047c088b (diff)
downloaditools-28fc7c3a971fb7ecf66a5d7d764007e17d2ff899.tar.gz
itools-28fc7c3a971fb7ecf66a5d7d764007e17d2ff899.tar.bz2
itools-28fc7c3a971fb7ecf66a5d7d764007e17d2ff899.zip
provide url even when no trace
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index fa881ff..4060b17 100644
--- a/it.class
+++ b/it.class
@@ -244,7 +244,7 @@ static function error($p = array())
else if ($_SERVER['REMOTE_ADDR']) # toscreen mode: web
echo "<pre style='z-index:10000; position:relative; background:white'>" . htmlspecialchars($p['title'] . "\n" . rtrim($body), ENT_COMPAT, "iso-8859-1") . "</pre>"; # works with iso-8859-1 or utf-8, UTF8SAFE
else # toscreen mode: shell (outputs to stderr)
- error_log(substr($p['title'], 0, 100000) . " in " . ($trace ? $trace : "{$p['file']}:{$p['line']} Url: $url") . " " . (EDC('verboseerrors') ? D($p['locals']) : ""));
+ error_log(substr($p['title'], 0, 100000) . " in" . ($trace ? $trace : " {$p['file']}:{$p['line']}") . " Url: $url " . (EDC('verboseerrors') ? D($p['locals']) : ""));
}
if ($_SERVER['REMOTE_ADDR']) # additional entry in log/error_log