From 610f6f53f74fe29c7b8a7ef994108afc5d0b5019 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 21 Jul 2017 16:12:05 +0200 Subject: dont try to set headers if content already sent --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') 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); } -- cgit v1.2.3