diff options
author | Erik Nord <me@eriknord.me> | 2017-08-05 19:11:09 +0200 |
---|---|---|
committer | Erik Nord <me@eriknord.me> | 2017-08-05 19:11:09 +0200 |
commit | 9957eb37a9f12e9d9ea48b26801b1cf573376539 (patch) | |
tree | ce1dbe82be48b5c070a9b89cd3395b99625ef12f /system/core | |
parent | 4aaf3847dbd3a33bdd3341a93462be4f0cbcaeef (diff) |
Minor change in _display() method in CI_Output class allowing us to override output data with an empty string. Without this change CI chooses to use the default "final_output" var; even though we passed an empty string to the method.
Diffstat (limited to 'system/core')
-rw-r--r-- | system/core/Output.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/core/Output.php b/system/core/Output.php index 2dabb2445..aceef676a 100644 --- a/system/core/Output.php +++ b/system/core/Output.php @@ -412,7 +412,7 @@ class CI_Output { * @param string $output Output data override * @return void */ - public function _display($output = '') + public function _display($output = NULL) { // Note: We use load_class() because we can't use $CI =& get_instance() // since this function is sometimes called by the caching mechanism, @@ -429,7 +429,7 @@ class CI_Output { // -------------------------------------------------------------------- // Set the output data - if ($output === '') + if ($output === NULL) { $output =& $this->final_output; } |