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:
authorStefan Giehl <stefan@matomo.org>2022-02-22 01:08:13 +0300
committerGitHub <noreply@github.com>2022-02-22 01:08:13 +0300
commitd21506d79b168abc01a771bdccfd2c849b926215 (patch)
tree597cb0c50d98b147832517c28f65ef2b9d738748
parentfe734297e24cea49d1ca3a35b4879e17f92b2921 (diff)
Fix possible warning (#18830)
-rw-r--r--plugins/CustomDimensions/Archiver.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/CustomDimensions/Archiver.php b/plugins/CustomDimensions/Archiver.php
index 262c7807ec..ebb781cd8b 100644
--- a/plugins/CustomDimensions/Archiver.php
+++ b/plugins/CustomDimensions/Archiver.php
@@ -257,6 +257,10 @@ class Archiver extends \Piwik\Plugin\Archiver
$this->dataArray->sumMetricsActions($label, $row);
+ if (empty($row['url'])) {
+ continue;
+ }
+
// make sure we always work with normalized URL no matter how the individual action stores it
$normalized = Tracker\PageUrl::normalizeUrl($row['url']);
$row['url'] = $normalized['url'];