Skip to content
Browse files

Put back last commit. Some functions check $extra->id.

  • Loading branch information...
1 parent 2e633ad commit 4ab16d477d5c6a810c4861dffd1d1f1479de42c3 ethem committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/authorize/authorizenetlib.php
View
2 enrol/authorize/authorizenetlib.php
@@ -297,7 +297,7 @@ function authorize_action(&$order, &$message, &$extra, $action=AN_ACTION_NONE, $
$extra->transid = $transid;
$extra->settletime = authorize_getsettletime(time());
unset($extra->sum); // this is not used in refunds table.
- if (! insert_record('enrol_authorize_refunds', $extra)) {
+ if (! $extra->id = insert_record('enrol_authorize_refunds', $extra)) {
enrolment_plugin_authorize::email_to_admin("Error while trying to insert data " .
"into table enrol_authorize_refunds. Please add manually this record:", $extra);
}

0 comments on commit 4ab16d4

Please sign in to comment.
Something went wrong with that request. Please try again.