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:
authorThomas Steur <tsteur@users.noreply.github.com>2019-12-22 09:32:40 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2019-12-22 09:32:40 +0300
commit804b108e424ba2a65bb6f1c63b69ab1388c2073e (patch)
treeb6c869c47fe8ef54a93ca2753cce9e49625d7c90 /plugins/Live
parent9f84e573ae71fdfdedc273fb62da9106f27cf7cc (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.php5
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
+}