Skip to content

Commit

Permalink
cs fixer again...
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu Rolland authored and Matthieu Rolland committed Feb 29, 2024
1 parent 09ec25e commit 5d7306b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -1770,7 +1770,7 @@ public static function ps_round($value, $precision = 0, $round_mode = null)
public static function math_round($value, $places, $mode = PS_ROUND_HALF_UP)
{
// since php 8.1 the round function won't tolerate null values
if ($value === null) {
if (empty($value)) {
$value = 0.0;
}

Expand Down

0 comments on commit 5d7306b

Please sign in to comment.