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:
authorStefan Giehl <stefan@piwik.org>2018-10-10 23:36:59 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2018-10-10 23:36:59 +0300
commit8781da186812f5c5fb149e5837115ff01446fced (patch)
tree34f3deb25522be002984414a57b7aa7e4a346c39 /plugins/Goals
parent3634010ad7d069dca23741429ff57c71f3a690c9 (diff)
Prevent possible error if goalId is not set (#13561)
Diffstat (limited to 'plugins/Goals')
-rw-r--r--plugins/Goals/VisitorDetails.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/Goals/VisitorDetails.php b/plugins/Goals/VisitorDetails.php
index 0d45b06367..2f94476093 100644
--- a/plugins/Goals/VisitorDetails.php
+++ b/plugins/Goals/VisitorDetails.php
@@ -107,6 +107,11 @@ class VisitorDetails extends VisitorDetailsAbstract
}
$idGoal = $action['goalId'];
+
+ if (empty($idGoal)) {
+ return;
+ }
+
$idGoalKey = 'idgoal=' . $idGoal;
if (!isset($profile['totalConversionsByGoal'][$idGoalKey])) {