Index: temp_moodle_dev/moodle/mod/lamstwo/tooladapter_choice.php =================================================================== RCS file: /usr/local/cvsroot/temp_moodle_dev/moodle/mod/lamstwo/tooladapter_choice.php,v diff -u -r1.3 -r1.4 --- temp_moodle_dev/moodle/mod/lamstwo/tooladapter_choice.php 17 Dec 2008 23:38:37 -0000 1.3 +++ temp_moodle_dev/moodle/mod/lamstwo/tooladapter_choice.php 12 Jan 2009 05:45:02 -0000 1.4 @@ -28,7 +28,7 @@ $sectionid = optional_param('section', 1, PARAM_INT); $courseid = optional_param('cs', 1, PARAM_INT); $outputname = optional_param('oname', '', PARAM_TEXT); - $optionid = optional_param('optionID', PARAM_INT); + $orderID = optional_param('orderID', PARAM_INT); $user = get_record('user', 'username', $username); @@ -49,8 +49,12 @@ echo $text; break; case 'output': - $output = choice_get_tool_output($cmid, $user->id,$optionid); - echo $output; + $output = choice_get_tool_output($cmid, $user->id,$orderID); + if($output==true){ + echo("true"); + }else{ + echo("false"); + } break; case 'getoptions': choice_get_options($cmid);