diff options
-rw-r--r-- | it.class | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -150,7 +150,7 @@ function error($p = array(), $body = null, $to = null) # $body and $to deprecate 'blockmail' => 3600, ); - $toscreen = ini_get('display_errors') || EDC('astwin') || EDC('asdevel'); + $toscreen = ini_get('display_errors') || posix_isatty(STDOUT) || EDC('astwin') || EDC('asdevel'); if (!$toscreen) # this error can only be sent by mail: find out if we want to suppress it { @mkdir("/tmp/alertdata"); @@ -185,7 +185,7 @@ function error($p = array(), $body = null, $to = null) # $body and $to deprecate { $trace = it_debug::backtrace($p['backtraceskip']); # moved in here for performance in mass error case - $body = ($body ? trim($body)."\n\n" : "") . ($url && !$toscreen? "Url: $url\n\n" : "") . ($trace ? ($sendmail?"" :" ")."Trace: $trace\n\n" : ""); + $body = ($body ? trim($body)."\n\n" : "") . ($url && !$toscreen? "{$p['title']}\n\nUrl: $url\n\n" : "") . ($trace ? ($sendmail?"" :" ")."Trace: $trace\n\n" : ""); if ($sendmail) # we're mailing: send maximum info { |