Skip to content

Commit

Permalink
Fix null array access
Browse files Browse the repository at this point in the history
D9 thing
  • Loading branch information
DiegoPino authored Dec 15, 2020
1 parent 816be94 commit c05d121
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Element/WebformNominatim.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ public static function processWebformComposite(
],
'#description' => 'https://operations.osmfoundation.org/policies/nominatim/',
];
$trigger_name = $form_state->getTriggeringElement()['#name'];
$triggering_element = $form_state->getTriggeringElement();
$trigger_name = isset($triggering_element) && isset($triggering_element['#name'])? $triggering_element['#name'] : NULL;

// Only act on our own submits
if ($trigger_name == $element['#name'] . '_select_button' ||
Expand Down

0 comments on commit c05d121

Please sign in to comment.