summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 2 insertions, 0 deletions
diff --git a/it.class b/it.class
index 509ec3d..7398fa3 100644
--- a/it.class
+++ b/it.class
@@ -248,6 +248,8 @@ static function fatal($title='', $body='', $to='')
$p = is_array($title) ? $title : array('title' => $title, 'body' => $body, 'to' => $to);
$p['backtraceskip']++;
it::error($p);
+ if ($_SERVER['REMOTE_ADDR'])
+ header("HTTP/1.0 500 Internal Server Error");
exit(1);
}