Fix for MDL-6628: the lesson object was not being cloned correctly.

This commit is contained in:
mark-nielsen 2006-09-23 19:57:35 +00:00
parent 6707a280a9
commit 31b50f6442

View File

@ -165,7 +165,6 @@ function lesson_update_instance($lesson) {
if ($lesson->lessondefault) {
$default = new stdClass;
$default = clone($lesson);
$default = $lesson;
unset($default->lessondefault);
unset($default->name);
unset($default->timemodified);
@ -215,7 +214,7 @@ function lesson_update_instance($lesson) {
}
add_event($event);
return update_record("lesson", $lesson);
}