Fixed: Resolve notice when changing status of a canceled order
Co-authored-by: Name <sumit201@webkul.in>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user