Skip to content

Commit

Permalink
Fixed passing null for unserialize is deprecated in Mage_Sales_Model_…
Browse files Browse the repository at this point in the history
…Quote_Address (OpenMage#3337)
  • Loading branch information
kyrena authored Jun 20, 2023
1 parent 8001770 commit bda0b6f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/code/core/Mage/Sales/Model/Quote/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
}
Expand Down

0 comments on commit bda0b6f

Please sign in to comment.