diff --git a/design/privateheader.php b/design/privateheader.php index 4268094e..b3c0e8d4 100644 --- a/design/privateheader.php +++ b/design/privateheader.php @@ -119,10 +119,10 @@ } ?> @@ -160,7 +160,7 @@ JOIN forums_last_read_topics AS l ON s.UserID = l.UserID AND s.TopicID = l.TopicID JOIN forums_topics AS t ON l.TopicID = t.ID JOIN forums AS f ON t.ForumID = f.ID - WHERE (f.MinClassRead <= ".$LoggedUser['Class']." OR f.ID IN ('$PermittedForums') + WHERE (f.MinClassRead <= ".$LoggedUser['Class']." OR f.ID IN ('$PermittedForums')) AND l.PostID < t.LastPostID AND s.UserID = ".$LoggedUser['ID']. (!empty($RestrictedForums) ? "