Commit b66eddc6 authored by arnested's avatar arnested Committed by bojanz

Issue #2996192 by arnested: Avoid PHP warning

parent 8e1d716d
......@@ -237,8 +237,8 @@ class AddressItem extends FieldItemBase implements AddressInterface {
$field_overrides[$field] = FieldOverride::HIDDEN;
}
}
else {
foreach ($this->getSetting('field_overrides') as $field => $data) {
elseif ($overrides = $this->getSetting('field_overrides')) {
foreach ($overrides as $field => $data) {
$field_overrides[$field] = $data['override'];
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment