Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
Adds fallback for active baskets created prior to gift card introduction
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberth91 committed Oct 11, 2018
1 parent 6070c4d commit 0839b24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Basket/Basket.php
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ protected function retrieveBasket()
}
}

if ($basket['gift_card_code'])
if (array_get($basket, 'gift_card_code.classname'))
{
$classname = $basket['gift_card_code']['classname'];
$loaded_code = $classname::loadInstance($basket['gift_card_code']['id']);
Expand Down

0 comments on commit 0839b24

Please sign in to comment.