mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-20960 testing correctly response 0 as not null line 393 merged from 1.9
This commit is contained in:
parent
dc98ad65de
commit
b7c81cf066
1 changed files with 1 additions and 1 deletions
|
@ -390,7 +390,7 @@ class embedded_cloze_qtype extends default_questiontype {
|
|||
|
||||
// Set up a default chosenanswer so that all non-empty wrong
|
||||
// answers are highlighted red
|
||||
if (empty($chosenanswer) && !empty($response)) {
|
||||
if (empty($chosenanswer) && $response != '') {
|
||||
$chosenanswer = new stdClass;
|
||||
$chosenanswer->fraction = 0.0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue