Skip to content

Commit

Permalink
Fix 1.fit from @OlafvdSpek
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangibbons committed Nov 7, 2019
1 parent 4169c6f commit 6c9518f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/phpFITFileAnalysis.php
Original file line number Diff line number Diff line change
Expand Up @@ -1609,7 +1609,7 @@ private function fixData($options)
}

// Remove duplicate timestamps
if (isset($this->data_mesgs['record']['timestamp'])) {
if (isset($this->data_mesgs['record']['timestamp']) && is_array($this->data_mesgs['record']['timestamp'])) {
$this->data_mesgs['record']['timestamp'] = array_unique($this->data_mesgs['record']['timestamp']);
}

Expand Down

0 comments on commit 6c9518f

Please sign in to comment.