Skip to content

Commit e17ebd3

Browse files
author
Derrick Heesbeen
authored
Merge pull request #9 from diglin/bugfixes
[BUGFIX] Take in account cases where fields are not returned or are n…
2 parents ca13fdd + ac44715 commit e17ebd3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Helper/Data.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ public function getExtraCheckoutAddressFields($fieldset='extra_checkout_billing_
2525

2626
$extraCheckoutFields = [];
2727

28-
foreach($fields as $field=>$fieldInfo){
29-
$extraCheckoutFields[] = $field;
28+
if (is_array($fields)) {
29+
foreach ($fields as $field => $fieldInfo) {
30+
$extraCheckoutFields[] = $field;
31+
}
3032
}
3133

3234
return $extraCheckoutFields;

0 commit comments

Comments
 (0)