summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorMichiel Vugteveen <michiel@it-can.nl>2012-08-14 10:55:46 +0200
committerMichiel Vugteveen <michiel@it-can.nl>2012-08-14 10:55:46 +0200
commit28ff29272f4ac6815354878534493016ca31582a (patch)
tree4fb0a938e068a94c653a265aec046e9f5485b9ed /system/helpers
parent6c94c2dcfb6557947c9ac67e419b2856fd80e01d (diff)
fix issue 1706
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/download_helper.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/helpers/download_helper.php b/system/helpers/download_helper.php
index 09c4de578..0232adfe4 100644
--- a/system/helpers/download_helper.php
+++ b/system/helpers/download_helper.php
@@ -95,7 +95,10 @@ if ( ! function_exists('force_download'))
}
// Clean output buffer
- ob_clean();
+ if (ob_get_level() !== 0)
+ {
+ ob_clean();
+ }
// Generate the server headers
header('Content-Type: '.$mime);