xfrocks
Well-known member
This is a minor bug.
File: xenforo/library/XenForo/Model/Thread.php
Line: 131
The $selectFields should include user gender to display the no-avatar image correctly. So, that code snippet should be
File: xenforo/library/XenForo/Model/Thread.php
Line: 131
PHP:
else if ($fetchOptions['join'] & self::FETCH_AVATAR)
{
$selectFields .= ',
user.avatar_date, user.gravatar';
$joinTables .= '
LEFT JOIN xf_user AS user ON
(user.user_id = thread.user_id)';
}
The $selectFields should include user gender to display the no-avatar image correctly. So, that code snippet should be
PHP:
else if ($fetchOptions['join'] & self::FETCH_AVATAR)
{
$selectFields .= ',
user.gender, user.avatar_date, user.gravatar';
$joinTables .= '
LEFT JOIN xf_user AS user ON
(user.user_id = thread.user_id)';
}