SCORM MDL-22289 - include correct user info in call to get user pic

This commit is contained in:
Dan Marsden
2010-05-03 23:23:11 +00:00
parent d3ce7c2cc7
commit 0e41ea1d47
+5 -2
View File
@@ -453,9 +453,12 @@
$row[] = '';
}
}
//TODO: fetch the user details elsewhere - this is a performance problem!!
if (in_array('picture', $columns)){
$user = (object)array('id'=>$scouser->userid);
$user = (object)array('id'=>$scouser->userid,
'picture'=>$scouser->picture,
'imagealt'=>$scouser->imagealt,
'firstname'=>$scouser->firstname,
'lastname'=>$scouser->lastname);
$row[] = $OUTPUT->user_picture($user, array('courseid'=>$course->id));
}
if (!$download){