diff options
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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'])) { |