commit | c545c0147636d8592fdcb7e8ec2c6df09399d485 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Thu Feb 19 11:36:10 2015 +0200 |
committer | Andrey Andreev <narf@devilix.net> | Thu Feb 19 11:36:10 2015 +0200 |
tree | fb2b61b70cfa8463219d66f99b004df708596a26 | |
parent | ff7563e3ffa522f35ec18c99273a9ce14a48e6db [diff] [blame] |
Make set_status_header() a dummy under CLI Close #3605
diff --git a/system/core/Common.php b/system/core/Common.php index 9f50974..7035c18 100644 --- a/system/core/Common.php +++ b/system/core/Common.php
@@ -492,6 +492,11 @@ */ function set_status_header($code = 200, $text = '') { + if (is_cli()) + { + return; + } + $stati = array( 200 => 'OK', 201 => 'Created',