diff options
author | Ruslan Uzdenov <rxu@mail.ru> | 2009-10-28 16:49:23 +0000 |
---|---|---|
committer | Ruslan Uzdenov <rxu@mail.ru> | 2009-10-28 16:49:23 +0000 |
commit | 3d3e673396ea95f401aa5a1460e1a7dbbef1100a (patch) | |
tree | 916da0ab8a64782d8e2e5d1f6da7ee2ed6e26d96 | |
parent | 401ee9ce59c54230bdf911a8ba847cbe06820b79 (diff) | |
download | forums-3d3e673396ea95f401aa5a1460e1a7dbbef1100a.tar forums-3d3e673396ea95f401aa5a1460e1a7dbbef1100a.tar.gz forums-3d3e673396ea95f401aa5a1460e1a7dbbef1100a.tar.bz2 forums-3d3e673396ea95f401aa5a1460e1a7dbbef1100a.tar.xz forums-3d3e673396ea95f401aa5a1460e1a7dbbef1100a.zip |
Fix Bug #53285 introduced in r10018 - Mark the first visible forum on index as unread if there's any unread global announcement
Authorised by: Bantu
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10243 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/includes/functions_display.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index cec1becb6e..58cbdaef5b 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -323,7 +323,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod $forum_unread = (isset($forum_tracking_info[$forum_id]) && $row['orig_forum_last_post_time'] > $forum_tracking_info[$forum_id]) ? true : false; // Mark the first visible forum on index as unread if there's any unread global announcement - if (($forum_id == $forum_ids_moderator[0]) && ($root_data['forum_id'] == 0) && $ga_unread) + if ($ga_unread && !empty($forum_ids_moderator) && $forum_id == $forum_ids_moderator[0]) { $forum_unread = true; } |