mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
If an error occures, id returns 0.
The user, who will be sent email, may be confused for $record->id=0.
This commit is contained in:
parent
00ba27c582
commit
2e633ad500
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->transid = $transid;
|
||||||
$extra->settletime = authorize_getsettletime(time());
|
$extra->settletime = authorize_getsettletime(time());
|
||||||
unset($extra->sum); // this is not used in refunds table.
|
unset($extra->sum); // this is not used in refunds table.
|
||||||
if (! $extra->id = insert_record('enrol_authorize_refunds', $extra)) {
|
if (! insert_record('enrol_authorize_refunds', $extra)) {
|
||||||
enrolment_plugin_authorize::email_to_admin("Error while trying to insert data " .
|
enrolment_plugin_authorize::email_to_admin("Error while trying to insert data " .
|
||||||
"into table enrol_authorize_refunds. Please add manually this record:", $extra);
|
"into table enrol_authorize_refunds. Please add manually this record:", $extra);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue