diff options
author | Stefan Giehl <stefan@piwik.org> | 2018-10-10 23:36:59 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2018-10-10 23:36:59 +0300 |
commit | 8781da186812f5c5fb149e5837115ff01446fced (patch) | |
tree | 34f3deb25522be002984414a57b7aa7e4a346c39 /plugins/Goals | |
parent | 3634010ad7d069dca23741429ff57c71f3a690c9 (diff) |
Prevent possible error if goalId is not set (#13561)
Diffstat (limited to 'plugins/Goals')
-rw-r--r-- | plugins/Goals/VisitorDetails.php | 5 |
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])) { |