Skip to content
Snippets Groups Projects
Commit 61d887e9 authored by Ray Stuart's avatar Ray Stuart Committed by Joao Ventura
Browse files

Issue #3166653 by raystuart, MattDanger, zoiosilva, newswatch, jcnventura:...

Issue #3166653 by raystuart, MattDanger, zoiosilva, newswatch, jcnventura: [PHP 7.4] Notice: Trying to access array offset on value of type null in linked_field_field_attach_view_alter()
parent a57eaba5
Branches 7.x-1.x
No related tags found
No related merge requests found
......@@ -331,10 +331,10 @@ function linked_field_field_attach_view_alter(&$output, $context) {
}
// Otherwise we use the 'default' view mode.
else {
$display = $instance['display']['default'];
$display = isset($instance['display']['default']) ? $instance['display']['default'] : array();
}
$settings = $display['settings'];
$settings = isset($display['settings']) ? $display['settings'] : array();
// We need special behavior for Display Suite fields.
if ($element['#field_type'] == 'ds') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment