Commit e56e4a14 authored by Benoit Mortier's avatar Benoit Mortier
Browse files

Fixes: #1531 Trace should be given for each fatal error

parent 6189a33b
......@@ -3911,7 +3911,7 @@ function fix_dos_linebreaks($str)
return preg_replace('/\\r\\n/', "\n", $str);
}
function html_trace()
function html_trace($errstr = "")
{
if (!function_exists('debug_backtrace')) {
return array ("", "");
......
......@@ -135,7 +135,7 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline)
$error_collector_mailto .= rawurlencode("PHP error: $errstr ($errfile, line $errline)\n");
$error_collector_mailto .= rawurlencode("=== /Error === \n\n");
list($html_trace, $mailto_trace) = html_trace();
list($html_trace, $mailto_trace) = html_trace($errstr);
$error_collector .= $html_trace;
$error_collector_mailto .= $mailto_trace;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment