Jaxel
Well-known member
Line 147 on XenForo_Model_Thread
What good is having attach_count if you can't retrieve attachments without a post_id? Shouldn't this be changed to:
Code:
if ($fetchOptions['join'] & self::FETCH_FIRSTPOST)
{
$selectFields .= ',
post.message, post.attach_count';
$joinTables .= '
INNER JOIN xf_post AS post ON
(post.post_id = thread.first_post_id)';
}
What good is having attach_count if you can't retrieve attachments without a post_id? Shouldn't this be changed to:
Code:
if ($fetchOptions['join'] & self::FETCH_FIRSTPOST)
{
$selectFields .= ',
post.post_id, post.message, post.attach_count';
$joinTables .= '
INNER JOIN xf_post AS post ON
(post.post_id = thread.first_post_id)';
}
Upvote
0