summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 57126dd..52d54ed 100644
--- a/it.class
+++ b/it.class
@@ -269,7 +269,7 @@ static function error($p = array())
if ($p['fatal'])
{
- if ($_SERVER['REMOTE_ADDR'])
+ if ($_SERVER['REMOTE_ADDR'] && !headers_sent())
header("HTTP/1.0 500 Internal Server Error");
exit(99);
}