From de954a59ae324135fdccb438cc1b5a0040471639 Mon Sep 17 00:00:00 2001 From: sgiehl Date: Thu, 30 Mar 2017 21:58:04 +0200 Subject: fixes #11567 - fix possible notice in devicedetection archiver --- plugins/DevicesDetection/Archiver.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/DevicesDetection') 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(); } -- cgit v1.2.3