Browse files

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

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

0 comments on commit 5aba3d6

Please sign in to comment.