Hi, I'm trying to the user picture to match to a course contact.
Currently I get the course contacts using the function from the coursecatlib.php:
$course->get_course_contacts()
And then I cycle through the course contact list using:
foreach ($list_course_contacts as $userid => $coursecontact)
However, this doesn't return a user object, and I need a user object to use the function below:
$OUTPUT->user_picture($coursecontact, array('size' => 50))
what step am I missing?
cheers,
Brad