2008-10-30, 10:17 PM
(This post was last modified: 2008-10-30, 10:18 PM by Michael S..)
It's 1 before the merge. The reason for the change can be found in the function merge_posts():
$query2 = $db->simple_select("attachments", "COUNT(aid) as count", "pid IN({$pidin}) AND pid != '{$masterpid}' AND visible='1'");
$attachment_count = $db->fetch_field($query2, "count");
$db->update_query("threads", array("attachmentcount" => $attachment_count), "tid = '{$mastertid}'");
$masterpid is the ID of the first post and because of that the query returns 0.