From 5d7306b01725f49080189ca1ac3fda077c6d6c3a Mon Sep 17 00:00:00 2001 From: Matthieu Rolland Date: Thu, 29 Feb 2024 13:57:59 +0100 Subject: [PATCH] cs fixer again... --- classes/Tools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Tools.php b/classes/Tools.php index f0210fa3f970c..1617a69c0f64d 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -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; }