mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
If an error occures, id returns 0.
The user, who will be sent email, may be confused for $record->id=0. Merged from 16stable.
This commit is contained in:
parent
1dab3c8384
commit
c008cd2fcf
@ -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 (! $extra->id = insert_record('enrol_authorize_refunds', $extra)) {
|
||||
if (! 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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user