diff options
author | Daniel Morris <daniel@honestempire.com> | 2012-10-04 22:44:09 +0200 |
---|---|---|
committer | Daniel Morris <daniel@honestempire.com> | 2012-10-04 22:44:09 +0200 |
commit | 7885c5cac9932e0598719682522b1c4902c15876 (patch) | |
tree | de575b8880d798f6792f8450223d4f9d04cd7642 | |
parent | e5f9e4a6069db57ec6c166bc8f198b1c229cf399 (diff) |
Compatibility with PHP 5.2.4 and enclosed ternary operation
Signed-off-by: Daniel Morris <daniel@honestempire.com>
-rw-r--r-- | system/core/Common.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Common.php b/system/core/Common.php index 2a804877d..e449dd2e0 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -490,7 +490,7 @@ if ( ! function_exists('set_status_header')) } else { - header($server_protocol ?: 'HTTP/1.1'.' '.$code.' '.$text, TRUE, $code); + header(($server_protocol ? $server_protocol : 'HTTP/1.1').' '.$code.' '.$text, TRUE, $code); } } } |