summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorAlex Bilbie <alex@alexbilbie.com>2012-08-14 10:57:50 +0200
committerAlex Bilbie <alex@alexbilbie.com>2012-08-14 10:57:50 +0200
commit327e5c950306087e037c5669c9c36f288c7d8d35 (patch)
tree4fb0a938e068a94c653a265aec046e9f5485b9ed /system/helpers
parent6c94c2dcfb6557947c9ac67e419b2856fd80e01d (diff)
parent28ff29272f4ac6815354878534493016ca31582a (diff)
Merge pull request #1707 from IT-Can/fix-issue-1706
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);