Commit 1fdb2c8a authored by jenlampton's avatar jenlampton

Prevent PHP notice.

parent 88576345
...@@ -237,8 +237,7 @@ function authorizenetwebform_webform_client_form_submit($form, &$form_state) { ...@@ -237,8 +237,7 @@ function authorizenetwebform_webform_client_form_submit($form, &$form_state) {
// Get the amount. // Get the amount.
$amount_key = $flipped_map['x_amount']; $amount_key = $flipped_map['x_amount'];
$amount = str_replace('$', '', $amount); $amount = str_replace('$', '', $field_values[$amount_key]);
$amount = $field_values[$amount_key];
// Special handling for quantity. // Special handling for quantity.
if (array_key_exists('anwf_quantity', $flipped_map)) { if (array_key_exists('anwf_quantity', $flipped_map)) {
......
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