Here is the query above it:
PHP Code:
<td>
<?php
if ($GLOBALS['vbulletin']->db->query_first(sprintf('SELECT dateline FROM %1$scustomprofilepic WHERE userid = %2$d', TABLE_PREFIX, RollCalls::$vB_User_Id)) != null && $registration['Registration']['profile_picture'] && $registration['Registration']['user_id']) {
$url = sprintf('customprofilepics/profilepic%d_1.gif', $registration['Registration']['user_id']);
} else {
$url = 'images/misc/unknown.gif';
}
echo $this->Html->image("{$GLOBALS['vbulletin']->options['bburl']}/{$url}");
?>
</td>