From cb0483f54cccd5118baf5aaf86c2e33ccfa5ff3c Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 18 Oct 2013 14:17:00 +0000 Subject: additional check if headers can be modified --- itjs.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itjs.class b/itjs.class index c4e91d5..d2aba92 100644 --- a/itjs.class +++ b/itjs.class @@ -195,7 +195,7 @@ static function checksum($fnlist) { $origheaders = headers_list(); $result = it_cache::put($key, substr(md5(itjs::filecontents(is_array($fnlist) ? $fnlist : itjs::filenames($fnlist), false)), 0, 8)); - if (headers_list() != $origheaders) + if (!headers_sent() && headers_list() != $origheaders) { header_remove(); foreach ($origheaders as $origheader) -- cgit v1.2.3