mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-35620 question engine: should distinguish NULL and 0.
This only matters in an obscure edge case, but it is an edge case we hit with one of the OU question types. This load data code is processing the results of a LEFT JOIN, so is_null is the correct logic.
This commit is contained in:
parent
5d6285c220
commit
65cf651fd8
@ -386,7 +386,7 @@ class question_attempt_step {
|
||||
$record = $currentrec;
|
||||
$data = array();
|
||||
while ($currentrec && $currentrec->attemptstepid == $attemptstepid) {
|
||||
if ($currentrec->name) {
|
||||
if (!is_null($currentrec->name)) {
|
||||
$data[$currentrec->name] = $currentrec->value;
|
||||
}
|
||||
$records->next();
|
||||
|
Loading…
x
Reference in New Issue
Block a user