Skip to content

Commit

Permalink
Merged choice fix for $current notice from 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Jan 25, 2008
1 parent 3efca70 commit 89f02fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/choice/view.php
Expand Up @@ -74,6 +74,7 @@
print_box(format_text($choice->text, $choice->format), 'generalbox', 'intro');
}

$current = false; // Initialise for later
//if user has already made a selection, and they are not allowed to update it, show their selected answer.
if (!empty($USER->id) && ($current = get_record('choice_answers', 'choiceid', $choice->id, 'userid', $USER->id)) &&
empty($choice->allowupdate) ) {
Expand Down

0 comments on commit 89f02fd

Please sign in to comment.