Browse Source

! Stats could be interestingly incorrect.

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 10 years ago
parent
commit
e33209e734
1 changed files with 4 additions and 3 deletions
  1. 4 3
      Sources/SplitTopics.php

+ 4 - 3
Sources/SplitTopics.php

@@ -1267,10 +1267,11 @@ function MergeExecute($topics = array())
 	}
 
 	// Fix the topic count stuff depending on what the new one counts as.
-	if ($topic_approved)
-		$boardTotals[$target_board]['topics']--;
-	else
+	if (!$topic_approved)
+	{
+		$boardTotals[$target_board]['topics']++;
 		$boardTotals[$target_board]['unapproved_topics']--;
+	}
 
 	$boardTotals[$target_board]['unapproved_posts'] -= $num_unapproved;
 	$boardTotals[$target_board]['posts'] -= $topic_approved ? $num_replies + 1 : $num_replies;