Skip to content

Commit

Permalink
MDL-20296 removing & in print_question_grading_details() as reported …
Browse files Browse the repository at this point in the history
…in php analysis
  • Loading branch information
pichetp committed Oct 13, 2009
1 parent cad36f4 commit f0b6151
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions question/type/numerical/questiontype.php
Expand Up @@ -406,8 +406,8 @@ function compare_responses(&$question, $state, $teststate) {
if (isset($teststate->responses['unit'])){
$testresponses .= $teststate->responses['unit'];
}
if ( isset($responses) && isset($testresponses )) {
// echo "<p> compare response $responses || $testresponses <pre>";print_r($state);echo "</pre></p>";
if ( isset($responses) && isset($testresponses )) {

return $responses == $testresponses ;
}
Expand All @@ -424,7 +424,7 @@ function test_response(&$question, &$state, $answer) {
if ($answer->answer === '*') {
return true;
}
// echo "<p> test response numerical state <pre>";print_r($state);echo "</pre></p>";
// echo "<p> test response numerical state <pre>";print_r($state);echo "</pre></p>";
// echo "<p> test response numerical question <pre>";print_r($question);echo "</pre></p>";

if( isset($state->responses['unit']) && isset($question->options->units[$state->responses['unit']])){
Expand Down Expand Up @@ -697,7 +697,7 @@ function edit_numerical_options(&$mform, &$that){
function print_question_grading_details(&$question, &$state, $cmoptions, $options) {
// echo "<p>state uestion_grading_details $question->id $question->qtype <pre>";print_r($state);echo "</pre></p>";

parent::print_question_grading_details(&$question, &$state, $cmoptions, $options);
parent::print_question_grading_details($question, $state, $cmoptions, $options);

}

Expand Down

0 comments on commit f0b6151

Please sign in to comment.