diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2009-09-08 10:36:22 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2009-09-08 10:36:22 +0000 |
commit | 5537393f76cf56d21f39b863425f3ddb5c500808 (patch) | |
tree | b3595f23604344fff7326812f442e09be34fac31 /phpBB/includes/functions_display.php | |
parent | d85493ab16658387d603ca0d949e65bc3ea1533c (diff) | |
download | forums-5537393f76cf56d21f39b863425f3ddb5c500808.tar forums-5537393f76cf56d21f39b863425f3ddb5c500808.tar.gz forums-5537393f76cf56d21f39b863425f3ddb5c500808.tar.bz2 forums-5537393f76cf56d21f39b863425f3ddb5c500808.tar.xz forums-5537393f76cf56d21f39b863425f3ddb5c500808.zip |
Further adjust unread tracking query, should work now for user last mark times less than forum/topic mark times.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10121 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_display.php')
-rw-r--r-- | phpBB/includes/functions_display.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index 5caccc81d9..cec1becb6e 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -107,9 +107,9 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod $ga_unread = false; if ($root_data['forum_id'] == 0) { - $unread_ga_list = get_unread_topics($user->data['user_id'], 'AND t.forum_id = 0'); + $unread_ga_list = get_unread_topics($user->data['user_id'], 'AND t.forum_id = 0', '', 1); - if (sizeof($unread_ga_list)) + if (!empty($unread_ga_list)) { $ga_unread = true; } |