summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-02-19 10:36:10 +0100
committerAndrey Andreev <narf@devilix.net>2015-02-19 10:36:10 +0100
commitc545c0147636d8592fdcb7e8ec2c6df09399d485 (patch)
treefb2b61b70cfa8463219d66f99b004df708596a26 /system
parentff7563e3ffa522f35ec18c99273a9ce14a48e6db (diff)
Make set_status_header() a dummy under CLI
Close #3605
Diffstat (limited to 'system')
-rw-r--r--system/core/Common.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/core/Common.php b/system/core/Common.php
index 9f509745f..7035c18ff 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -492,6 +492,11 @@ if ( ! function_exists('set_status_header'))
*/
function set_status_header($code = 200, $text = '')
{
+ if (is_cli())
+ {
+ return;
+ }
+
$stati = array(
200 => 'OK',
201 => 'Created',