mirror of https://github.com/BOINC/boinc.git
- fix PHP warning in forums
svn path=/trunk/boinc/; revision=14431
This commit is contained in:
parent
481d5dd45b
commit
32a69ba042
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue