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:
-rw-r--r--plugins/Goals/DataTable/Filter/CalculateConversionPageRate.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Goals/DataTable/Filter/CalculateConversionPageRate.php b/plugins/Goals/DataTable/Filter/CalculateConversionPageRate.php
index fc4555df45..43b548559b 100644
--- a/plugins/Goals/DataTable/Filter/CalculateConversionPageRate.php
+++ b/plugins/Goals/DataTable/Filter/CalculateConversionPageRate.php
@@ -100,8 +100,10 @@ class CalculateConversionPageRate extends BaseFilter
foreach ($goalIds as $idGoal => $g) {
$total = $archive->getNumeric(GoalsArchiver::getRecordName('nb_conversions', $idGoal));
- if (count($total)) {
+ if (is_array($total) && count($total)) {
$goalTotals[$idGoal] = reset($total);
+ } else if (is_numeric($total)) {
+ $goalTotals[$idGoal] = $total;
}
}