From dfb252e252f21f3258f39666ca6c50b6b3e716c4 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Wed, 10 Oct 2001 00:00:42 +0000 Subject: Minor updates and fixes git-svn-id: file:///svn/phpbb/trunk@1147 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'phpBB/index.php') diff --git a/phpBB/index.php b/phpBB/index.php index c67fe95514..348e3e33c9 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -49,12 +49,13 @@ else // if( $mark_read == "forums" ) { + $sql = "SELECT f.forum_id, t.topic_id FROM " . FORUMS_TABLE . " f, " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p WHERE t.forum_id = f.forum_id AND p.post_id = t.topic_last_post_id AND p.post_time > " . $userdata['session_last_visit'] . " - AND t.topic_moved_id = NULL"; + AND t.topic_moved_id IS NULL"; if(!$t_result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, "Could not query new topic information", "", __LINE__, __FILE__, $sql); @@ -238,6 +239,7 @@ if($total_categories = $db->sql_numrows($q_categories)) // // Find which forums are visible for this user // + $is_auth_ary = array(); $is_auth_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata, $forum_rows); $template->set_filenames(array( -- cgit v1.2.1