lastread stuff is just causing too many problems with repeated forums at present - disabling till fixed

git-svn-id: file:///svn/phpbb/trunk@3350 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2003-01-22 15:06:11 +00:00
parent c1a478005a
commit 85c4ee575c

View file

@ -33,7 +33,7 @@ function display_forums($root_data = '', $display_moderators = TRUE)
$where_sql = ' WHERE left_id > ' . $root_data['left_id'] . ' AND left_id < ' . $root_data['right_id']; $where_sql = ' WHERE left_id > ' . $root_data['left_id'] . ' AND left_id < ' . $root_data['right_id'];
} }
if ($user->data['user_id'] != ANONYMOUS) /* if ($user->data['user_id'] != ANONYMOUS)
{ {
$lastread_select = ", lr.lastread_time"; $lastread_select = ", lr.lastread_time";
$lastread_sql = " $lastread_sql = "
@ -46,10 +46,10 @@ function display_forums($root_data = '', $display_moderators = TRUE)
//$where_sql .= ' GROUP BY f.forum_id'; //$where_sql .= ' GROUP BY f.forum_id';
} }
else else
{ {*/
$lastread_select = ''; $lastread_select = '';
$lastread_sql = ''; $lastread_sql = '';
} // }
$sql = 'SELECT f.* ' . $lastread_select . ' $sql = 'SELECT f.* ' . $lastread_select . '
FROM ' . FORUMS_TABLE . " f " . FROM ' . FORUMS_TABLE . " f " .