diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-04-09 08:19:14 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-04-09 08:19:14 +0400 |
commit | 3e77d757f04c7d76d85c65c1224525334a2d4fe7 (patch) | |
tree | 071a47341793572bb75e305f947da283d2d44624 /core/Common.php | |
parent | 5bd5211adc1094a6ad9e2f4f33f31992a32fe1b0 (diff) |
Do not send header on CLI mode.
Diffstat (limited to 'core/Common.php')
-rw-r--r-- | core/Common.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/Common.php b/core/Common.php index 57349802e9..876f6ff8e8 100644 --- a/core/Common.php +++ b/core/Common.php @@ -1023,6 +1023,10 @@ class Common */ public static function sendHeader($header, $replace = true) { + // don't send header in CLI mode + if(Common::isPhpCliMode()) { + return; + } if (isset($GLOBALS['PIWIK_TRACKER_LOCAL_TRACKING']) && $GLOBALS['PIWIK_TRACKER_LOCAL_TRACKING']) { @header($header, $replace); } else { |