From bda0b6f3fe253abf0188fa3a02f1dcd7d7c9a4d8 Mon Sep 17 00:00:00 2001 From: kyrena <78410399+kyrena@users.noreply.github.com> Date: Tue, 20 Jun 2023 12:42:15 +0200 Subject: [PATCH] Fixed passing null for unserialize is deprecated in Mage_Sales_Model_Quote_Address (#3337) --- app/code/core/Mage/Sales/Model/Quote/Address.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/code/core/Mage/Sales/Model/Quote/Address.php b/app/code/core/Mage/Sales/Model/Quote/Address.php index b3ca22dc0b2..7acfd689fc0 100644 --- a/app/code/core/Mage/Sales/Model/Quote/Address.php +++ b/app/code/core/Mage/Sales/Model/Quote/Address.php @@ -1167,8 +1167,12 @@ public function validateMinimumAmount() */ public function getAppliedTaxes() { + $tax = $this->getData('applied_taxes'); + if (empty($tax)) { + return []; + } try { - $return = Mage::helper('core/unserializeArray')->unserialize($this->getData('applied_taxes')); + $return = Mage::helper('core/unserializeArray')->unserialize($tax); } catch (Exception $e) { $return = []; }