Skip to content

Commit

Permalink
Fix if options are phrases
Browse files Browse the repository at this point in the history
The problem is caused by the paypal plugin
  • Loading branch information
pointia authored Oct 24, 2022
1 parent 9de7822 commit 9905707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugin/ConfigFieldPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function ($key) use ($field) {
);
}
foreach ($field->getOptions() as $option) {
if ($option['value'] == $scopeValue) {
if (is_array($option) && $option['value'] == $scopeValue) {
return $option['label'];
}
}
Expand Down

0 comments on commit 9905707

Please sign in to comment.