Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] Merge posts - attachment(s) problem [R] [C-Michael83]
#3
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.
Greets,
Michael
-------------
[Image: donation_drive_sig.png]


Messages In This Thread
RE: Merge posts - attachment(s) problem [R] - by Michael S. - 2008-10-30, 10:17 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)