Browse Source

! Child boards were a bit enthusiastic about being marked as having new things in them. Refers to #891.

Signed-off-by: Peter Spicer <sleeping@myperch.org>
Peter Spicer 11 years ago
parent
commit
12bb4d48cd
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'];