Skip to content

Commit

Permalink
fixed a potential bug
Browse files Browse the repository at this point in the history
  • Loading branch information
shagtv committed Jan 29, 2020
1 parent 0523e8c commit f94778f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

There are next changes:

## 1.2.13

There are next changes:

- fixed a fatal error in the aggregator script

## 1.2.12

There are next changes:
Expand Down
1 change: 1 addition & 0 deletions src/Badoo/LiveProfilerUI/Aggregator.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ protected function aggregate() : bool
protected function aggregateRow(array $map) : array
{
foreach ($this->fields as $param) {
$map[$param . 's'] = $map[$param . 's'] ?? '';
$map[$param . 's'] = explode(',', rtrim($map[$param . 's'], ','));
$map[$param] = array_sum($map[$param . 's']);
foreach ($this->field_variations as $field_variation) {
Expand Down

0 comments on commit f94778f

Please sign in to comment.