Просмотр исходного кода

This should avoid that SMF forgets disregarded topics when marking a board as read - thanks Arantor for the reminder

Signed-off-by: emanuele <[email protected]>
emanuele 12 лет назад
Родитель
Сommit
9dadc4ff58
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      Sources/Subs-Boards.php

+ 2 - 1
Sources/Subs-Boards.php

@@ -109,7 +109,8 @@ function markBoardsRead($boards, $unread = false)
 			INNER JOIN {db_prefix}topics AS t /*!40000 USE INDEX (PRIMARY) */ ON (t.id_topic = lt.id_topic
 				AND t.id_board IN ({array_int:board_list}))
 		WHERE lt.id_member = {int:current_member}
-			AND lt.id_topic >= {int:lowest_topic}',
+			AND lt.id_topic >= {int:lowest_topic}
+			AND lt.disregarded != 1',
 		array(
 			'current_member' => $user_info['id'],
 			'board_list' => $boards,