Merged $current notice from 1.9

This commit is contained in:
moodler
2008-01-25 06:31:15 +00:00
parent 67e21b0e2b
commit 2760f205c9
+1
View File
@@ -79,6 +79,7 @@ if ($action == 'delchoice') {
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) ) {