Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit dc754f4f56870d67d4dd19a9bdce84e06e298030 1 parent ab2f17b
ethem authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  enrol/authorize/authorizenetlib.php
View
2  enrol/authorize/authorizenetlib.php
@@ -331,7 +331,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)) {
email_to_admin("Error while trying to insert data " .
"into table enrol_authorize_refunds. Please add manually this record:", $extra);
}
Please sign in to comment.
Something went wrong with that request. Please try again.