diff options
author | pickupman <jomcfred@gmail.com> | 2012-08-19 17:15:01 +0200 |
---|---|---|
committer | pickupman <jomcfred@gmail.com> | 2012-08-19 17:15:01 +0200 |
commit | 0f8a7930fef43f26a856035be1922577722bf51e (patch) | |
tree | adceeee7861f8a93522cf57c281f08eca270f8b0 /system/helpers/download_helper.php | |
parent | 6c94c2dcfb6557947c9ac67e419b2856fd80e01d (diff) | |
parent | 58854c372175552bb9e360deace7eeb52cdda059 (diff) |
Merging heads
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); |