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:
Diffstat (limited to 'core/Plugin/ActionDimension.php')
-rw-r--r--core/Plugin/ActionDimension.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Plugin/ActionDimension.php b/core/Plugin/ActionDimension.php
index 1380fae6bc..5fc4ed3824 100644
--- a/core/Plugin/ActionDimension.php
+++ b/core/Plugin/ActionDimension.php
@@ -59,11 +59,12 @@ abstract class ActionDimension
protected function addSegment(Segment $segment)
{
- if (!empty($this->fieldName)) {
+ $sqlSegment = $segment->getSqlSegment();
+ if (!empty($this->fieldName) && !empty($sqlSegment)) {
$segment->setSqlSegment('log_link_visit_action.' . $this->fieldName);
}
- $segment->setType('dimension');
+ $segment->setType(Segment::TYPE_DIMENSION);
$this->segments[] = $segment;
}