Skip to content

Commit

Permalink
Merged tidyup of indenting
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Feb 15, 2008
1 parent a5f77de commit 392763d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mod/choice/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 392763d

Please sign in to comment.