mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 05:54:19 +02:00
MDL-21336 testing with $correct != '' so that correct answer 0 is shown
This commit is contained in:
parent
fc285d748e
commit
fbe60eb3ea
@ -325,7 +325,7 @@ class question_shortanswer_qtype extends default_questiontype {
|
||||
$class = question_get_feedback_class($state->last_graded->raw_grade /
|
||||
$question->maxgrade);
|
||||
echo '<div class="correctness ' . $class . '">' . get_string($class, 'quiz');
|
||||
if ($correctanswer && ($class == 'partiallycorrect' || $class == 'incorrect')) {
|
||||
if ($correctanswer != '' && ($class == 'partiallycorrect' || $class == 'incorrect')) {
|
||||
echo ('<div class="correctness">');
|
||||
print_string('correctansweris', 'quiz', s($correctanswer));
|
||||
echo ('</div>');
|
||||
|
Loading…
x
Reference in New Issue
Block a user