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 'plugins/Contents/Archiver.php')
-rw-r--r--plugins/Contents/Archiver.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/Contents/Archiver.php b/plugins/Contents/Archiver.php
index debac613a9..55668b4c3a 100644
--- a/plugins/Contents/Archiver.php
+++ b/plugins/Contents/Archiver.php
@@ -265,6 +265,12 @@ class Archiver extends \Piwik\Plugin\Archiver
continue;
}
+ // content piece is optional
+ if ($subDimension == 'contentPiece'
+ && empty($subLabel)) {
+ $subLabel = self::CONTENT_PIECE_NOT_SET;
+ }
+
$dataArray->sumMetricsContentsImpressionPivot($mainLabel, $subLabel, $row);
}
}