From e746cce3465a662115cf8cbaea030ac48403736d Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 15 May 2018 17:58:17 +0200 Subject: dont cause extra errs --- auto_prepend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'auto_prepend.php') diff --git a/auto_prepend.php b/auto_prepend.php index f4f0b1c..4115f83 100644 --- a/auto_prepend.php +++ b/auto_prepend.php @@ -57,7 +57,7 @@ function EDC($var) function EDX() { $args = func_get_args(); - if ($_SERVER['REMOTE_ADDR']) + if ($_SERVER['REMOTE_ADDR'] && !headers_sent()) header("Content-Type: text/html"); # Not going to be e.g. a valid gif anyway exit(it_debug::dump($args)); -- cgit v1.2.3