commit | 28ff29272f4ac6815354878534493016ca31582a | [log] [tgz] |
---|---|---|
author | Michiel Vugteveen <michiel@it-can.nl> | Tue Aug 14 10:55:46 2012 +0200 |
committer | Michiel Vugteveen <michiel@it-can.nl> | Tue Aug 14 10:55:46 2012 +0200 |
tree | 4fb0a938e068a94c653a265aec046e9f5485b9ed | |
parent | 6c94c2dcfb6557947c9ac67e419b2856fd80e01d [diff] [blame] |
fix issue 1706
diff --git a/system/helpers/download_helper.php b/system/helpers/download_helper.php index 09c4de5..0232adf 100644 --- a/system/helpers/download_helper.php +++ b/system/helpers/download_helper.php
@@ -95,7 +95,10 @@ } // Clean output buffer - ob_clean(); + if (ob_get_level() !== 0) + { + ob_clean(); + } // Generate the server headers header('Content-Type: '.$mime);