aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_display.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-06-11 00:12:42 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-06-11 00:12:42 +0000
commit13a02f6cc5bcdb0654642135b2981633ac3996b5 (patch)
tree50e01ff1d2a73834c26fb72d229d46b02ec3da52 /phpBB/includes/functions_display.php
parent056ab23bb65aea43aeb0918e7d7992a8987890a8 (diff)
downloadforums-13a02f6cc5bcdb0654642135b2981633ac3996b5.tar
forums-13a02f6cc5bcdb0654642135b2981633ac3996b5.tar.gz
forums-13a02f6cc5bcdb0654642135b2981633ac3996b5.tar.bz2
forums-13a02f6cc5bcdb0654642135b2981633ac3996b5.tar.xz
forums-13a02f6cc5bcdb0654642135b2981633ac3996b5.zip
my round of bug fixes
git-svn-id: file:///svn/phpbb/trunk@7749 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_display.php')
-rw-r--r--phpBB/includes/functions_display.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index b87cf31d04..92e636af01 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -420,7 +420,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
}
$template->assign_vars(array(
- 'U_MARK_FORUMS' => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $root_data['forum_id'] . '&amp;mark=forums'),
+ 'U_MARK_FORUMS' => ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $root_data['forum_id'] . '&amp;mark=forums') : '',
'S_HAS_SUBFORUM' => ($visible_forums) ? true : false,
'L_SUBFORUM' => ($visible_forums == 1) ? $user->lang['SUBFORUM'] : $user->lang['SUBFORUMS'],
'LAST_POST_IMG' => $user->img('icon_topic_latest', 'VIEW_LATEST_POST'))