diff --git a/plugins/CustomDimensions/RecordBuilders/CustomDimension.php b/plugins/CustomDimensions/RecordBuilders/CustomDimension.php index f326c99407f..5915be1aa95 100644 --- a/plugins/CustomDimensions/RecordBuilders/CustomDimension.php +++ b/plugins/CustomDimensions/RecordBuilders/CustomDimension.php @@ -137,7 +137,7 @@ private function aggregateFromConversions(DataTable $report, LogAggregator $logA $value = $this->cleanCustomDimensionValue($row[$valueField]); unset($row[$valueField]); - $idGoal = $row['idgoal']; + $idGoal = (int) $row['idgoal']; $columns = [ Metrics::INDEX_GOALS => [ $idGoal => Metrics::makeGoalColumnsRow($idGoal, $row), diff --git a/plugins/DevicesDetection/RecordBuilders/Base.php b/plugins/DevicesDetection/RecordBuilders/Base.php index 763c1cc50b2..2a595a92a98 100644 --- a/plugins/DevicesDetection/RecordBuilders/Base.php +++ b/plugins/DevicesDetection/RecordBuilders/Base.php @@ -82,7 +82,7 @@ protected function aggregate(ArchiveProcessor $archiveProcessor): array while ($conversionRow = $query->fetch()) { $label = $conversionRow['label'] ?? ''; - $idGoal = $conversionRow['idgoal']; + $idGoal = (int) $conversionRow['idgoal']; $columns = [ Metrics::INDEX_GOALS => [ $idGoal => Metrics::makeGoalColumnsRow($idGoal, $conversionRow), diff --git a/plugins/Referrers/RecordBuilders/Referrers.php b/plugins/Referrers/RecordBuilders/Referrers.php index 831e01c727a..58144456767 100644 --- a/plugins/Referrers/RecordBuilders/Referrers.php +++ b/plugins/Referrers/RecordBuilders/Referrers.php @@ -194,7 +194,7 @@ protected function aggregateFromConversions(LogAggregator $logAggregator, array while ($row = $query->fetch()) { $this->makeReferrerTypeNonEmpty($row); - $idGoal = $row['idgoal']; + $idGoal = (int) $row['idgoal']; $columns = [ Metrics::INDEX_GOALS => [ $idGoal => Metrics::makeGoalColumnsRow($idGoal, $row), diff --git a/plugins/UserCountry/RecordBuilders/Locations.php b/plugins/UserCountry/RecordBuilders/Locations.php index 7f1b363e00f..66c9758cca5 100644 --- a/plugins/UserCountry/RecordBuilders/Locations.php +++ b/plugins/UserCountry/RecordBuilders/Locations.php @@ -154,7 +154,7 @@ protected function aggregateFromConversions(array $records, LogAggregator $logAg $this->makeRegionCityLabelsUnique($row); foreach ($records as $recordName => $table) { - $idGoal = $row['idgoal']; + $idGoal = (int) $row['idgoal']; $columns = [ Metrics::INDEX_GOALS => [ $idGoal => Metrics::makeGoalColumnsRow($idGoal, $row), diff --git a/plugins/VisitTime/RecordBuilders/ServerTime.php b/plugins/VisitTime/RecordBuilders/ServerTime.php index 0a07c5fab4c..7dc284fdea2 100644 --- a/plugins/VisitTime/RecordBuilders/ServerTime.php +++ b/plugins/VisitTime/RecordBuilders/ServerTime.php @@ -52,7 +52,7 @@ protected function aggregate(ArchiveProcessor $archiveProcessor): array $query = $logAggregator->queryConversionsByDimension(["label" => "HOUR(log_conversion.server_time)"]); while ($conversionRow = $query->fetch()) { - $idGoal = $conversionRow['idgoal']; + $idGoal = (int) $conversionRow['idgoal']; $columns = [ Metrics::INDEX_GOALS => [ $idGoal => Metrics::makeGoalColumnsRow($idGoal, $conversionRow),