mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
Put back last commit. Some functions check $extra->id.
This commit is contained in:
parent
2e633ad500
commit
4ab16d477d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue