Permalink
Browse files

MDL-34647: admintool: uploaduser enrolments now obey enrolperiod dire…

…ctive
  • Loading branch information...
1 parent dd9274c commit 625aa8b04338655f59e8734c6854f9727af83970 @aolley aolley committed Jul 28, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 admin/tool/uploaduser/index.php
@@ -853,6 +853,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);

0 comments on commit 625aa8b

Please sign in to comment.