Fixed: Resolve notice when changing status of a canceled order

Co-authored-by: Name <sumit201@webkul.in>
This commit is contained in:
amit sharma
2026-09-24 18:51:01 +05:30
parent de6ecd72f0
commit a891f4e4f5

View File

@@ -1885,6 +1885,8 @@ class ToolsCore
public static function math_round($value, $places, $mode = PS_ROUND_HALF_UP)
{
$value = (float) $value;
//If PHP_ROUND_HALF_UP exist (PHP 5.3) use it and pass correct mode value (PrestaShop define - 1)
if (defined('PHP_ROUND_HALF_UP')) {
return round($value, $places, $mode - 1);