From 98f6763c48ea3d22086e192345a7dd84dfb51b4f Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 17 Jul 2012 04:06:48 +0000 Subject: [PATCH] - web: make "jump to first unread" work for threads that haven't been viewed before svn path=/trunk/boinc/; revision=25875 --- checkin_notes | 7 +++++++ html/inc/forum.inc | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index a2ceba41fd..16a75b7494 100644 --- a/checkin_notes +++ b/checkin_notes @@ -4957,3 +4957,10 @@ David 16 July 2012 manage_apps.php vda/ sched_vda.cpp + +David 16 July 2012 + - web: make "jump to first unread" work for threads that + haven't been viewed before + + html/inc/ + forum.inc diff --git a/html/inc/forum.inc b/html/inc/forum.inc index 02e906415f..986c9d9fbf 100644 --- a/html/inc/forum.inc +++ b/html/inc/forum.inc @@ -363,7 +363,7 @@ function show_posts( echo "Post $postid not found."; return; } - } else if ($latest_viewed && $logged_in_user->prefs->jump_to_unread) { + } else if ($logged_in_user && $logged_in_user->prefs->jump_to_unread) { // jump to the first unread post // $i = 0;