Skip to content

Commit ec3e220

Browse files
authored
Ignore array keys that match unsummable columns when summing row array column (matomo-org#18600)
1 parent a0750b0 commit ec3e220

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

core/DataTable/Row.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,9 @@ protected function sumRowArray($thisColumnValue, $columnToSumValue, $columnName
678678
if (is_array($columnToSumValue)) {
679679
$newValue = $thisColumnValue;
680680
foreach ($columnToSumValue as $arrayIndex => $arrayValue) {
681+
if (!is_numeric($arrayIndex) && !$this->isSummableColumn($arrayIndex)) {
682+
continue;
683+
}
681684
if (!isset($newValue[$arrayIndex])) {
682685
$newValue[$arrayIndex] = false;
683686
}

0 commit comments

Comments
 (0)