Permalink
Browse files

Merge branch 'MDL-35620' of git://github.com/timhunt/moodle

  • Loading branch information...
2 parents 7a9b6cb + 65cf651 commit fc561b20896100b2b3da2bfac5c68e8829b9df0c @stronk7 stronk7 committed Oct 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 question/engine/questionattemptstep.php
@@ -386,7 +386,7 @@ public static function load_from_records($records, $attemptstepid) {
$record = $currentrec;
$data = array();
while ($currentrec && $currentrec->attemptstepid == $attemptstepid) {
- if ($currentrec->name) {
+ if (!is_null($currentrec->name)) {
$data[$currentrec->name] = $currentrec->value;
}
$records->next();

0 comments on commit fc561b2

Please sign in to comment.