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

This commit is contained in:
Eloy Lafuente (stronk7) 2012-10-01 10:28:28 +02:00
commit fc561b2089

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