diff --git a/question/engine/questionattemptstep.php b/question/engine/questionattemptstep.php index 4cd813a1132..20a34da5c81 100644 --- a/question/engine/questionattemptstep.php +++ b/question/engine/questionattemptstep.php @@ -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();