aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/index.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-10-10 00:00:42 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-10-10 00:00:42 +0000
commitdfb252e252f21f3258f39666ca6c50b6b3e716c4 (patch)
tree90b51e8675cd388017ac5441792c3945d6a45a0c /phpBB/index.php
parent84cc6cb8aeea2b9ff66eff19cffd7d697d62d7cf (diff)
downloadforums-dfb252e252f21f3258f39666ca6c50b6b3e716c4.tar
forums-dfb252e252f21f3258f39666ca6c50b6b3e716c4.tar.gz
forums-dfb252e252f21f3258f39666ca6c50b6b3e716c4.tar.bz2
forums-dfb252e252f21f3258f39666ca6c50b6b3e716c4.tar.xz
forums-dfb252e252f21f3258f39666ca6c50b6b3e716c4.zip
Minor updates and fixes
git-svn-id: file:///svn/phpbb/trunk@1147 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/index.php')
-rw-r--r--phpBB/index.php4
1 files changed, 3 insertions, 1 deletions
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(