Index: temp_moodle_dev/moodle/mod/lamstwo/tooladapter_choice.php =================================================================== diff -u -rb255ec6902a104eb0758affbe45a04e59f78198e -r0571de7dd9b71a7d71eaae6e62704415af0b26b9 --- temp_moodle_dev/moodle/mod/lamstwo/tooladapter_choice.php (.../tooladapter_choice.php) (revision b255ec6902a104eb0758affbe45a04e59f78198e) +++ temp_moodle_dev/moodle/mod/lamstwo/tooladapter_choice.php (.../tooladapter_choice.php) (revision 0571de7dd9b71a7d71eaae6e62704415af0b26b9) @@ -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);