From 392763dfda185417b14241cc2fc2f8817c0d03af Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 15 Feb 2008 02:43:38 +0000 Subject: [PATCH] Merged tidyup of indenting --- mod/choice/view.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mod/choice/view.php b/mod/choice/view.php index 9a393aefc1..383dd6cf4c 100644 --- a/mod/choice/view.php +++ b/mod/choice/view.php @@ -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 -- 2.39.5