- fix PHP warning in forums

svn path=/trunk/boinc/; revision=14431
This commit is contained in:
David Anderson 2007-12-21 17:10:46 +00:00
parent 481d5dd45b
commit 32a69ba042
2 changed files with 8 additions and 2 deletions

View File

@ -12404,3 +12404,9 @@ David 21 Dec 2007
lib/
prefs.h
common_defs.h
David 21 Dec 2007
- fix PHP warning in forums
html/inc/
forum.inc

View File

@ -253,9 +253,9 @@ function thread_last_visit($user, $thread) {
function thread_is_unread($user, $thread) {
if (!$user) return false;
$log = BoincForumLogging::lookup($user->id, $thread->id);
if ($thread->timestamp < $log->timestamp) return false;
if ($thread->timestamp < $user->prefs->mark_as_read_timestamp) return false;
$log = BoincForumLogging::lookup($user->id, $thread->id);
if ($log && ($thread->timestamp < $log->timestamp)) return false;
return true;
}