Skip to content

Commit

Permalink
MDL-34647: admintool: uploaduser enrolments now obey enrolperiod dire…
Browse files Browse the repository at this point in the history
…ctive
  • Loading branch information
aolley committed Jul 31, 2012
1 parent 6975216 commit 5aba3d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions admin/tool/uploaduser/index.php
Expand Up @@ -857,6 +857,8 @@
if ($duration > 0) { // sanity check
$timeend = $today + $duration;
}
} else if ($manualcache[$courseid]->enrolperiod > 0) {
$timeend = $today + $manualcache[$courseid]->enrolperiod;
}

$manual->enrol_user($manualcache[$courseid], $user->id, $rid, $today, $timeend);
Expand Down

0 comments on commit 5aba3d6

Please sign in to comment.