Skip to content

Commit

Permalink
MDL-27603 enrol_user - changed modifier to modifierid which is used i…
Browse files Browse the repository at this point in the history
…n database
  • Loading branch information
Rajesh Taneja committed May 30, 2011
1 parent 16b5541 commit 6006774
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/enrollib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ public function enrol_user(stdClass $instance, $userid, $roleid = NULL, $timesta
if (!is_null($status)) {
$ue->status = $status;
}
$ue->modifier = $USER->id;
$ue->modifierid = $USER->id;
$ue->timemodified = time();
$DB->update_record('user_enrolments', $ue);
}
Expand All @@ -1073,7 +1073,7 @@ public function enrol_user(stdClass $instance, $userid, $roleid = NULL, $timesta
$ue->userid = $userid;
$ue->timestart = $timestart;
$ue->timeend = $timeend;
$ue->modifier = $USER->id;
$ue->modifierid = $USER->id;
$ue->timecreated = time();
$ue->timemodified = $ue->timecreated;
$ue->id = $DB->insert_record('user_enrolments', $ue);
Expand Down

0 comments on commit 6006774

Please sign in to comment.