#223 Removed incorrect course reset logic
This commit is contained in:
parent
804b0ec359
commit
7de488d638
1 changed files with 0 additions and 6 deletions
6
lib.php
6
lib.php
|
@ -136,12 +136,6 @@ function customcert_reset_userdata($data) {
|
|||
'error' => false);
|
||||
}
|
||||
|
||||
// Updating dates - shift may be negative too.
|
||||
if ($data->timeshift) {
|
||||
shift_course_mod_dates('customcert', array('timeopen', 'timeclose'), $data->timeshift, $data->courseid);
|
||||
$status[] = array('component' => $componentstr, 'item' => get_string('datechanged'), 'error' => false);
|
||||
}
|
||||
|
||||
return $status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue