Преглед изворни кода

Merge pull request #1329 from Arantor/release-2.1

! Stats could be interestingly incorrect.
Arantor пре 10 година
родитељ
комит
1827331187
1 измењених фајлова са 4 додато и 3 уклоњено
  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;