Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
Fix optout
  • Loading branch information
Syxton committed Oct 17, 2018
1 parent fbdeff8 commit d0be55e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -1171,6 +1171,8 @@ public function optout_course($courseid, $userid = false) {
}

if ($course = get_course($courseid)) {
$date = new DateTime("now", core_date::get_user_timezone_object());
$optouttime = $date->getTimestamp();
$config = get_config('tool_coursearchiver');
$course->optoutmonths = $config->optoutmonthssetting;
$record = new stdClass();
Expand Down

0 comments on commit d0be55e

Please sign in to comment.