summaryrefslogtreecommitdiffstats
path: root/system/helpers/download_helper.php
diff options
context:
space:
mode:
authordchill42 <dchill42@gmail.com>2012-08-27 17:57:31 +0200
committerdchill42 <dchill42@gmail.com>2012-08-27 17:57:31 +0200
commit62ece3359211482dc5671b9521454608ad226840 (patch)
treed80aac29baaad6e9b51e865dc3ab7367c40077d4 /system/helpers/download_helper.php
parentaee9265602c3bb30a1f7f3dfd562b9b36cc612a4 (diff)
parent2d5c209943ef1e2644504e8d5cb32d3d66b45632 (diff)
Merge branch 'develop' of git://github.com/EllisLab/CodeIgniter into session
Diffstat (limited to 'system/helpers/download_helper.php')
-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);