diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-06-04 13:44:34 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-06-04 13:44:34 +0200 |
commit | 9ba661b02c492e89028e5c67b7edbfc0efefc9f1 (patch) | |
tree | d3c3250b2c19b6d009c3fd3fe580b7021ed18a23 /system/core/Common.php | |
parent | 142b618fb7419972288a8f7b58e7e2509b3bf225 (diff) |
Revert/optimize some changes from ed944a3c70a0bad158cd5a6ca5ce1f2e717aff5d
Diffstat (limited to 'system/core/Common.php')
-rw-r--r-- | system/core/Common.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/system/core/Common.php b/system/core/Common.php index a773c4f20..8af7d6323 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -436,12 +436,11 @@ if ( ! function_exists('set_status_header')) 505 => 'HTTP Version Not Supported' ); - if ($code === '' OR ! is_numeric($code)) + if ($code == '' OR ! is_numeric($code)) { show_error('Status codes must be numeric', 500); } - - if (isset($stati[$code]) && $text === '') + elseif (isset($stati[$code]) && $text === '') { $text = $stati[$code]; } |