From f87a441a37840951c1ceba600612170304055efd Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Tue, 26 Mar 2024 07:25:13 +1300 Subject: [PATCH] fix: if rate is undefined set 0 (#73) --- src/Model/ShippingMethod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/ShippingMethod.php b/src/Model/ShippingMethod.php index 41269d2..87ef8cc 100644 --- a/src/Model/ShippingMethod.php +++ b/src/Model/ShippingMethod.php @@ -51,7 +51,7 @@ public function getRate() public function getTitle() { $rate = number_format( - $this->Rate, + $this->Rate ?? 0, 2, ShopCurrency::config()->decimal_delimiter, ShopCurrency::config()->thousand_delimiter