Skip to content

Commit

Permalink
fixes #6474
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed Oct 20, 2014
1 parent ce2223c commit 56d1d10
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/DataArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,13 @@ protected function doSumVisitsMetrics($newRowToAdd, &$oldRowToUpdate, $onlyMetri
// In case the existing Row had no action metrics (eg. Custom Variable XYZ with "visit" scope)
// but the new Row has action metrics (eg. same Custom Variable XYZ this time with a "page" scope)
if (!isset($oldRowToUpdate[Metrics::INDEX_MAX_ACTIONS])) {
$toZero = array(Metrics::INDEX_MAX_ACTIONS,
$toZero = array(
Metrics::INDEX_NB_USERS,
Metrics::INDEX_MAX_ACTIONS,
Metrics::INDEX_SUM_VISIT_LENGTH,
Metrics::INDEX_BOUNCE_COUNT,
Metrics::INDEX_NB_VISITS_CONVERTED);
Metrics::INDEX_NB_VISITS_CONVERTED
);
foreach($toZero as $metric) {
$oldRowToUpdate[$metric] = 0;
}
Expand Down

0 comments on commit 56d1d10

Please sign in to comment.