Skip to content

Commit

Permalink
Ensure parameter is provided in correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Oct 5, 2023
1 parent 0d0e6e0 commit 6a9993c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RecordBuilders/CampaignReporting.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected function aggregateFromLogs(LogAggregator $logAggregator, array $record
Metrics::INDEX_NB_VISITS_CONVERTED => $row[Metrics::INDEX_NB_VISITS_CONVERTED],
];
} else if ($aggregatorMethod == 'queryConversionsByDimension') {
$idGoal = $row['idgoal'];
$idGoal = (int) $row['idgoal'];
$columns = [
Metrics::INDEX_GOALS => [
$idGoal => Metrics::makeGoalColumnsRow($idGoal, $row),
Expand Down

0 comments on commit 6a9993c

Please sign in to comment.