]> git.mjollnir.org Git - moodle.git/commitdiff
Merged $current notice from 1.9
authormoodler <moodler>
Fri, 25 Jan 2008 06:31:15 +0000 (06:31 +0000)
committermoodler <moodler>
Fri, 25 Jan 2008 06:31:15 +0000 (06:31 +0000)
mod/choice/view.php

index bafd2773eb2c4ec0d48aff1cc1c61480aa7c51ae..9a393aefc1454ac1077fb83d54d2b6ff52ffc82c 100644 (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) ) {