Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-04-09 08:19:14 +0400
committermattab <matthieu.aubry@gmail.com>2014-04-09 08:19:14 +0400
commit3e77d757f04c7d76d85c65c1224525334a2d4fe7 (patch)
tree071a47341793572bb75e305f947da283d2d44624 /core/Common.php
parent5bd5211adc1094a6ad9e2f4f33f31992a32fe1b0 (diff)
Do not send header on CLI mode.
Diffstat (limited to 'core/Common.php')
-rw-r--r--core/Common.php4
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 {