Skip to content

Commit

Permalink
MDL-32438 choice: fix fatal error on making choice
Browse files Browse the repository at this point in the history
  • Loading branch information
micaherne committed Apr 13, 2012
1 parent 668a499 commit b09912f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/choice/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ function choice_user_submit_response($formanswer, $choice, $userid, $course, $cm
$DB->update_record("choice_answers", $newanswer);
add_to_log($course->id, "choice", "choose again", "view.php?id=$cm->id", $choice->id, $cm->id);
} else {
$newanswer = stdClass();
$newanswer = new stdClass();
$newanswer->choiceid = $choice->id;
$newanswer->userid = $userid;
$newanswer->optionid = $formanswer;
Expand Down

0 comments on commit b09912f

Please sign in to comment.