From 4f2db0f4145efafd693eb74cdaecd125d4678854 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Mon, 17 Dec 2001 03:15:09 +0000 Subject: [PATCH] Another lastvisit name change missed git-svn-id: file:///svn/phpbb/trunk@1619 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/viewtopic.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index bdde34167e..d5d9be710c 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -193,7 +193,7 @@ if(!empty($post_id)) $is_auth = array(); $is_auth = auth(AUTH_ALL, $forum_id, $userdata, $forum_row); -if(!$is_auth['auth_view'] || !$is_auth['auth_read']) +if( !$is_auth['auth_view'] || !$is_auth['auth_read'] ) { // // The user is not authed to read this forum ... @@ -772,7 +772,7 @@ for($i = 0; $i < $total_posts; $i++) // // Define the little post icon // - if( $postrow[$i]['post_time'] > $userdata['session_last_visit'] && $postrow[$i]['post_time'] > $topic_last_read ) + if( $userdata['session_logged_in'] && $postrow[$i]['post_time'] > $userdata['user_lastvisit'] && $postrow[$i]['post_time'] > $topic_last_read ) { $mini_post_img = '' . $lang['New_post'] . ''; }