diff options
author | sgiehl <stefan@piwik.org> | 2017-03-30 22:58:04 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2017-03-30 22:58:04 +0300 |
commit | de954a59ae324135fdccb438cc1b5a0040471639 (patch) | |
tree | d85eaabd7aa0351b9a7fde79449675c1a9e0f5b0 /plugins/DevicesDetection | |
parent | a21b868d63b1a210016c9a43a3a470b5e88f6c64 (diff) |
fixes #11567 - fix possible notice in devicedetection archiver
Diffstat (limited to 'plugins/DevicesDetection')
-rw-r--r-- | plugins/DevicesDetection/Archiver.php | 5 |
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(); } |