mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-20296 removing & in print_question_grading_details() as reported in php analysis
This commit is contained in:
parent
cad36f4e50
commit
f0b6151c68
@ -406,8 +406,8 @@ class question_numerical_qtype extends question_shortanswer_qtype {
|
||||
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 ;
|
||||
}
|
||||
@ -424,7 +424,7 @@ class question_numerical_qtype extends question_shortanswer_qtype {
|
||||
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']])){
|
||||
@ -697,7 +697,7 @@ class question_numerical_qtype extends question_shortanswer_qtype {
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user