diff options
author | dchill42 <dchill42@gmail.com> | 2012-08-27 17:57:31 +0200 |
---|---|---|
committer | dchill42 <dchill42@gmail.com> | 2012-08-27 17:57:31 +0200 |
commit | 62ece3359211482dc5671b9521454608ad226840 (patch) | |
tree | d80aac29baaad6e9b51e865dc3ab7367c40077d4 /system/helpers/download_helper.php | |
parent | aee9265602c3bb30a1f7f3dfd562b9b36cc612a4 (diff) | |
parent | 2d5c209943ef1e2644504e8d5cb32d3d66b45632 (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.php | 5 |
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); |