From: moodler Date: Fri, 25 Jan 2008 06:31:15 +0000 (+0000) Subject: Merged $current notice from 1.9 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2760f205c9c5e9cd4e36a5ebc6421629a4f5a09b;p=moodle.git Merged $current notice from 1.9 --- diff --git a/mod/choice/view.php b/mod/choice/view.php index bafd2773eb..9a393aefc1 100644 --- a/mod/choice/view.php +++ b/mod/choice/view.php @@ -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) ) {