diff options
author | Eric Roberts <eric@cryode.com> | 2012-08-15 23:19:16 +0200 |
---|---|---|
committer | Eric Roberts <eric@cryode.com> | 2012-08-15 23:19:16 +0200 |
commit | 49354253c7fa7e195589ebec2be5530cfeaa99f1 (patch) | |
tree | 039ec96dd7cface48fe8d540df5d92a3e6ed1515 /system | |
parent | 19d0f56d53997dba23a736295aa2a67fbc5ad52f (diff) | |
parent | 6a64f856ae09fb14460cf09544a5fe9f2f463fea (diff) |
Merge branch 'develop' of https://github.com/EllisLab/CodeIgniter into develop
Diffstat (limited to 'system')
-rw-r--r-- | system/helpers/download_helper.php | 5 | ||||
-rw-r--r-- | system/helpers/html_helper.php | 2 |
2 files changed, 5 insertions, 2 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); diff --git a/system/helpers/html_helper.php b/system/helpers/html_helper.php index 9843e804e..2372e8174 100644 --- a/system/helpers/html_helper.php +++ b/system/helpers/html_helper.php @@ -215,7 +215,7 @@ if ( ! function_exists('img')) } } - return $img._stringify_attributes($attributes).'/>'; + return $img._stringify_attributes($attributes).' />'; } } |