]> git.mjollnir.org Git - moodle.git/commitdiff
Merged tidyup of indenting
authormoodler <moodler>
Fri, 15 Feb 2008 02:43:38 +0000 (02:43 +0000)
committermoodler <moodler>
Fri, 15 Feb 2008 02:43:38 +0000 (02:43 +0000)
mod/choice/view.php

index 9a393aefc1454ac1077fb83d54d2b6ff52ffc82c..383dd6cf4c62ed1c2165fca9c942cc5992fd0acc 100644 (file)
         print_error('badcontext');
     }
 
-if ($action == 'delchoice') {
-    if ($answer = get_record('choice_answers', 'choiceid', $choice->id, 'userid', $USER->id)) {
-        //print_object($answer);
-        delete_records('choice_answers', 'id', $answer->id);
+    if ($action == 'delchoice') {
+        if ($answer = get_record('choice_answers', 'choiceid', $choice->id, 'userid', $USER->id)) {
+            //print_object($answer);
+            delete_records('choice_answers', 'id', $answer->id);
+        }
     }
-}
 
 /// Submit any new data if there is any