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:
-rw-r--r--piwik.php2
-rw-r--r--tests/PHPUnit/Core/ReleaseCheckListTest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/piwik.php b/piwik.php
index a123987a26..4563dddffe 100644
--- a/piwik.php
+++ b/piwik.php
@@ -85,7 +85,7 @@ if (!defined('PIWIK_ENABLE_TRACKING') || PIWIK_ENABLE_TRACKING) {
\Piwik\FrontController::createConfigObject();
-$GLOBALS['PIWIK_TRACKER_DEBUG'] = \Piwik\Config::getInstance()->Tracker['debug'];
+$GLOBALS['PIWIK_TRACKER_DEBUG'] = (bool) \Piwik\Config::getInstance()->Tracker['debug'];
if ($GLOBALS['PIWIK_TRACKER_DEBUG'] === true) {
require_once PIWIK_INCLUDE_PATH . '/core/Loader.php';
diff --git a/tests/PHPUnit/Core/ReleaseCheckListTest.php b/tests/PHPUnit/Core/ReleaseCheckListTest.php
index 16449bb4cd..139d528819 100644
--- a/tests/PHPUnit/Core/ReleaseCheckListTest.php
+++ b/tests/PHPUnit/Core/ReleaseCheckListTest.php
@@ -159,10 +159,10 @@ class ReleaseCheckListTest extends PHPUnit_Framework_TestCase
$_GET = $oldGet;
+ $this->assertEquals(0, \Piwik\Config::getInstance()->Tracker['debug']);
$this->assertTrue($GLOBALS['PIWIK_TRACKER_DEBUG'] === false);
}
-
/**
* This tests that all PHP files start with <?php
* This would help detect errors such as a php file starting with spaces