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:
authorMatthieu Aubry <matt@piwik.org>2015-09-11 06:23:55 +0300
committerMatthieu Aubry <matt@piwik.org>2015-09-11 06:23:55 +0300
commit06c3acee1bfd2724b4905f35812b0c8a9ccbd915 (patch)
tree585f212f5a8714dc0e25c6cf8fbbbc3a6d5b6fbf
parentbd250985351e3d5d6e8f23ab324fcb64f1933bab (diff)
parent8f33b3fccda993e9a1e16e576b7f99d80f8e1062 (diff)
Merge pull request #8751 from piwik/8622_request_metadata_defaults
Default visit custom variables array in GoalManager class.
-rw-r--r--core/Tracker/GoalManager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Tracker/GoalManager.php b/core/Tracker/GoalManager.php
index 89c55b2d67..b7a63775b5 100644
--- a/core/Tracker/GoalManager.php
+++ b/core/Tracker/GoalManager.php
@@ -224,7 +224,7 @@ class GoalManager
public function recordGoals(VisitProperties $visitProperties, Request $request)
{
$visitorInformation = $visitProperties->getProperties();
- $visitCustomVariables = $request->getMetadata('CustomVariables', 'visitCustomVariables');
+ $visitCustomVariables = $request->getMetadata('CustomVariables', 'visitCustomVariables') ?: array();
/** @var Action $action */
$action = $request->getMetadata('Actions', 'action');