Browse Source

Merge pull request #892 from Arantor/release-2.1

! Child boards were a bit enthusiastic about being marked as having new ...
Arantor 11 years ago
parent
commit
73d303a71b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/Subs-BoardIndex.php

+ 1 - 1
Sources/Subs-BoardIndex.php

@@ -235,7 +235,7 @@ function getBoardIndex($boardIndexOptions)
 			$this_category[$row_board['id_parent']]['children_new'] |= empty($row_board['is_read']);
 
 			// Update the icon if appropriate
-			if ($this_category[$row_board['id_parent']]['board_class'] == 'off')
+			if ($this_category[$row_board['id_parent']]['children_new'] && $this_category[$row_board['id_parent']]['board_class'] == 'off')
 			{
 				$this_category[$row_board['id_parent']]['board_class'] = 'on2';
 				$this_category[$row_board['id_parent']]['board_tooltip'] = $txt['new_posts'];