Merge branch 'MDL-32438-master' of git://github.com/micaherne/moodle

This commit is contained in:
Dan Poltawski 2012-04-16 13:46:03 +08:00
commit 5599620feb

View file

@ -295,7 +295,7 @@ WHERE
$DB->update_record("choice_answers", $newanswer); $DB->update_record("choice_answers", $newanswer);
add_to_log($course->id, "choice", "choose again", "view.php?id=$cm->id", $choice->id, $cm->id); add_to_log($course->id, "choice", "choose again", "view.php?id=$cm->id", $choice->id, $cm->id);
} else { } else {
$newanswer = stdClass(); $newanswer = new stdClass();
$newanswer->choiceid = $choice->id; $newanswer->choiceid = $choice->id;
$newanswer->userid = $userid; $newanswer->userid = $userid;
$newanswer->optionid = $formanswer; $newanswer->optionid = $formanswer;