Just tidying up source

This commit is contained in:
moodler
2008-02-15 02:42:56 +00:00
parent 1fe0ed0b7d
commit 9988024f6e
+5 -5
View File
@@ -28,12 +28,12 @@
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