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:
authorsgiehl <stefan@piwik.org>2017-03-30 22:58:04 +0300
committersgiehl <stefan@piwik.org>2017-03-30 22:58:04 +0300
commitde954a59ae324135fdccb438cc1b5a0040471639 (patch)
treed85eaabd7aa0351b9a7fde79449675c1a9e0f5b0 /plugins/DevicesDetection
parenta21b868d63b1a210016c9a43a3a470b5e88f6c64 (diff)
fixes #11567 - fix possible notice in devicedetection archiver
Diffstat (limited to 'plugins/DevicesDetection')
-rw-r--r--plugins/DevicesDetection/Archiver.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/DevicesDetection/Archiver.php b/plugins/DevicesDetection/Archiver.php
index ea63485017..a930757174 100644
--- a/plugins/DevicesDetection/Archiver.php
+++ b/plugins/DevicesDetection/Archiver.php
@@ -87,8 +87,9 @@ class Archiver extends \Piwik\Plugin\Archiver
}
while ($conversionRow = $query->fetch()) {
-
- $metrics->sumMetricsGoals($conversionRow[$labelSQL], $conversionRow);
+ if (isset($conversionRow[$labelSQL])) {
+ $metrics->sumMetricsGoals($conversionRow[$labelSQL], $conversionRow);
+ }
}
$metrics->enrichMetricsWithConversions();
}