Skip to content

Commit

Permalink
Fixed passing null for number_format is deprecated for downloadable p…
Browse files Browse the repository at this point in the history
…roducts (OpenMage#3382)

Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com>
Co-authored-by: kyrena <78410399+kyrena@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 17, 2023
1 parent 4ece531 commit ca00bda
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public function getLinkData()
*/
public function getPriceValue($value)
{
return number_format($value, 2, null, '');
return number_format($value ?? 0, 2, null, '');
}

/**
Expand Down

0 comments on commit ca00bda

Please sign in to comment.