Permalink
Browse files

MDL-27603 enrol_user - changed modifier to modifierid which is used i…

…n database
  • Loading branch information...
1 parent 16b5541 commit 6006774cf7fa41ee0db6a9c70d690fa670f776ea Rajesh Taneja committed May 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/enrollib.php
View
@@ -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);
}
@@ -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);

0 comments on commit 6006774

Please sign in to comment.