I'm trying to get the user avatar so I used following code
$options = array(
'visibletoscreenreaders' => false,
'includefullname' => true,
It returns following error:
Exception - Argument 1 passed to core_renderer::user_picture() must be an instance of stdClass, string given, called in [dirroot]/theme/mytheme/layout/frontpage.php on line 91
How to fix it?