Skip to content

Commit

Permalink
Merge pull request #29 from pointia/master
Browse files Browse the repository at this point in the history
Fix if options are phrases
  • Loading branch information
avstudnitz authored Nov 7, 2022
2 parents 800e11e + 9905707 commit 597240e
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 @@ -183,7 +183,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 597240e

Please sign in to comment.