We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d224604 + ba2cbf7 commit 72e02f0Copy full SHA for 72e02f0
app/code/Magento/Braintree/Model/Adminhtml/System/Config/CountryCreditCard.php
@@ -56,6 +56,13 @@ public function __construct(
56
public function beforeSave()
57
{
58
$value = $this->getValue();
59
+ if (!is_array($value)) {
60
+ try {
61
+ $value = unserialize($value);
62
+ } catch (\InvalidArgumentException $e) {
63
+ $value = [];
64
+ }
65
66
$result = [];
67
foreach ($value as $data) {
68
if (empty($data['country_id']) || empty($data['cc_types'])) {
0 commit comments