From: ethem Date: Tue, 3 Oct 2006 19:39:21 +0000 (+0000) Subject: Put back last commit. Some functions check $extra->id. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=dc754f4f56870d67d4dd19a9bdce84e06e298030;p=moodle.git Put back last commit. Some functions check $extra->id. --- diff --git a/enrol/authorize/authorizenetlib.php b/enrol/authorize/authorizenetlib.php index d3b83ab597..a1b4c5f2e3 100644 --- a/enrol/authorize/authorizenetlib.php +++ b/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); }