summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class7
1 files changed, 5 insertions, 2 deletions
diff --git a/it.class b/it.class
index 78161f9..f30b5f8 100644
--- a/it.class
+++ b/it.class
@@ -118,9 +118,12 @@ function error($p = array(), $body = "", $to = "")
$title="Error in $url";
if (memory_get_usage() < 50000000)
- $stack = "\nTrace: " . it_debug::backtrace() . "\n\nStack:\n" . print_r(debug_backtrace(), true);
+ {
+ $trace = "\n\nTrace: " . it_debug::backtrace();
+ $stack = "\n\nStack:\n" . print_r(debug_backtrace(), true);
+ }
- $body .= "\nUrl: $url\n\n\$_REQUEST: ".print_r($_REQUEST, true) . $stack . "\n\$_SERVER: " . print_r($_SERVER, true);
+ $body .= "\nUrl: $url$trace\n\n\$_REQUEST: ".print_r($_REQUEST, true) . "\n\$_SERVER: " . print_r($_SERVER, true) . $stack;
if (!ereg('live', $GLOBALS['ULTRASERVERTYPE']))
{