Hi,
first of all, I hope am not posting anything that has already been changed. I tried to find threads concerning this issue using the board search, but I didn't find any.
What I'm talking about is the following piece of code in MergeExecute()
$request = db_query("
SELECT ID_BOARD, COUNT(ID_TOPIC) AS numTopics, SUM(numReplies) + COUNT(ID_TOPIC) AS numPosts
FROM {$db_prefix}topics
WHERE ID_BOARD IN (" . implode(', ', $boards) . ")
GROUP BY ID_BOARD
LIMIT " . count($boards), __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
db_query("
UPDATE {$db_prefix}boards
SET numPosts = $row[numPosts], numTopics = $row[numTopics]
WHERE ID_BOARD = $row[ID_BOARD]
LIMIT 1", __FILE__, __LINE__);
mysql_free_result($request);
When merging a thread into another one from another board and therefore leaving one board without any threads, the board information is not updated correctly since the first query does not return a value for the empty board.
I helped myself by just setting all boards' posts and topics to 0 before running those two queries.
JocalAreaNetwork