Commit 1926c9dd authored by jenlampton's avatar jenlampton

Prevent php notice on PHP 7.

parent fa87a270
......@@ -359,7 +359,8 @@ function authorizenetwebform_webform_client_form_submit($form, &$form_state) {
foreach ($field_keys as $rkey => $remaining_key) {
// Optionally add additional custom fields, if they have values.
if (!empty($field_values[$field_keys[$remaining_key]])) {
if (array_key_exists($remaining_key, $field_values[$field_keys) &&
!empty($field_values[$field_keys[$remaining_key]])) {
$data[$top_key][$second_key]['userFields']['userField'][] = array(
'name' => $remaining_key,
'value' => $field_values[$field_keys[$remaining_key]],
......
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