summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2017-07-21 16:12:05 +0200
committerUrban Müller2017-07-21 16:12:05 +0200
commit610f6f53f74fe29c7b8a7ef994108afc5d0b5019 (patch)
tree7143a194cad1222776c21430966e8a8fe8389bb1
parentf3d1953bbcec5e4125868c75a249f341d36a987a (diff)
downloaditools-610f6f53f74fe29c7b8a7ef994108afc5d0b5019.tar.gz
itools-610f6f53f74fe29c7b8a7ef994108afc5d0b5019.tar.bz2
itools-610f6f53f74fe29c7b8a7ef994108afc5d0b5019.zip
dont try to set headers if content already sent
-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);
}