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:
authorThomas Steur <tsteur@users.noreply.github.com>2019-10-16 01:06:02 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2019-10-16 01:06:02 +0300
commitaae4c720238edb45bd45f120811af29a4c7c8c40 (patch)
tree48e52b1a5d23bf58d0fbd3761e689969065f4ef4 /core/bootstrap.php
parenta6c8b5a51da898a50709292d531a9c1cf71794cb (diff)
Avoid warning headers already sent when setting session cache limiter (#14979)
* Avoid warning headers already sent when setting session cache limiter * Update bootstrap.php
Diffstat (limited to 'core/bootstrap.php')
-rw-r--r--core/bootstrap.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/bootstrap.php b/core/bootstrap.php
index 04d161a57b..2e46069641 100644
--- a/core/bootstrap.php
+++ b/core/bootstrap.php
@@ -29,7 +29,7 @@ if (!defined('PIWIK_VENDOR_PATH')) {
// NOTE: the code above must be PHP 4 compatible
require_once PIWIK_INCLUDE_PATH . '/core/testMinimumPhpVersion.php';
-if (session_status() !== PHP_SESSION_ACTIVE) {
+if (session_status() !== PHP_SESSION_ACTIVE && !headers_sent()) {
session_cache_limiter('nocache');
}