commit | 7885c5cac9932e0598719682522b1c4902c15876 | [log] [tgz] |
---|---|---|
author | Daniel Morris <daniel@honestempire.com> | Thu Oct 04 21:44:09 2012 +0100 |
committer | Daniel Morris <daniel@honestempire.com> | Thu Oct 04 21:44:09 2012 +0100 |
tree | de575b8880d798f6792f8450223d4f9d04cd7642 | |
parent | e5f9e4a6069db57ec6c166bc8f198b1c229cf399 [diff] [blame] |
Compatibility with PHP 5.2.4 and enclosed ternary operation Signed-off-by: Daniel Morris <daniel@honestempire.com>
diff --git a/system/core/Common.php b/system/core/Common.php index 2a80487..e449dd2 100644 --- a/system/core/Common.php +++ b/system/core/Common.php
@@ -490,7 +490,7 @@ } else { - header($server_protocol ?: 'HTTP/1.1'.' '.$code.' '.$text, TRUE, $code); + header(($server_protocol ? $server_protocol : 'HTTP/1.1').' '.$code.' '.$text, TRUE, $code); } } }