diff options
author | sapics <gv.nishino@gmail.com> | 2021-01-16 08:10:19 +0100 |
---|---|---|
committer | sapics <gv.nishino@gmail.com> | 2021-01-16 08:10:19 +0100 |
commit | af8cbdeed7b43951301e906bf73cabd948a9299a (patch) | |
tree | 3350b9bdc529eaf03f0a0bd75c39f415bb073e5a /system | |
parent | 71765467734fbd37e6d9411f7889659c5ea47f88 (diff) |
Fix error in core/Output.php for php8.0
Fix error in array_shift
array_map('array_shift', $this->headers) causes error as
array_shift(): Argument bcit-ci#1 ($array) must be passed by reference, value given
Diffstat (limited to 'system')
-rw-r--r-- | system/core/Output.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/system/core/Output.php b/system/core/Output.php index c56aff4b0..02c6d151b 100644 --- a/system/core/Output.php +++ b/system/core/Output.php @@ -300,9 +300,13 @@ class CI_Output { public function get_header($header) { // Combine headers already sent with our batched headers + $headers = array(); + foreach ($this->headers as $value) + { + $headers[] = $value[0]; + } $headers = array_merge( - // We only need [x][0] from our multi-dimensional array - array_map('array_shift', $this->headers), + $headers, headers_list() ); |