diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-12-22 09:32:40 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-12-22 09:32:40 +0300 |
commit | 804b108e424ba2a65bb6f1c63b69ab1388c2073e (patch) | |
tree | b6c869c47fe8ef54a93ca2753cce9e49625d7c90 /plugins/Live | |
parent | 9f84e573ae71fdfdedc273fb62da9106f27cf7cc (diff) |
Don't render goal when no goal name defined (#15303)
I think this prevented in my case some segmentation fault
Diffstat (limited to 'plugins/Live')
-rw-r--r-- | plugins/Live/VisitorDetails.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Live/VisitorDetails.php b/plugins/Live/VisitorDetails.php index fc77c1605b..98c0c52c9d 100644 --- a/plugins/Live/VisitorDetails.php +++ b/plugins/Live/VisitorDetails.php @@ -76,6 +76,9 @@ class VisitorDetails extends VisitorDetailsAbstract $template = '@Live/_actionEcommerce.twig'; break; case 'goal': + if (empty($action['goalName'])) { + return; // goal deleted + } $template = '@Live/_actionGoal.twig'; break; case 'action': @@ -287,4 +290,4 @@ class VisitorDetails extends VisitorDetailsAbstract return $visit->getColumn('referrerName'); } -}
\ No newline at end of file +} |