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:
Tim Hunt 2012-09-25 14:08:59 +01:00
parent 5d6285c220
commit 65cf651fd8

View File

@ -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();