Deal with error case that occurs in PHP logs

svn path=/trunk/boinc/; revision=6124
This commit is contained in:
Bruce Allen 2005-05-11 12:24:05 +00:00
parent 159acff3a2
commit 2e02ac23be
2 changed files with 3 additions and 1 deletions

View File

@ -6422,6 +6422,7 @@ Bruce 11 May 2005
util.inc
prefs.inc
forum_show.inc
db_forum.inc
host.inc
user/
prefs.php

View File

@ -291,6 +291,7 @@ function getThreadLastVisited($user, $thread){
/* $user->id - int
* $thread->id - int
*/
if (!$user) return $user;
if ($user->id==""){ //Disable read/unread stuff for users that are not logged in
$user->thread_last_visited=time(); //Always display as visited
return $user;
@ -489,4 +490,4 @@ function updateThread($threadID, $title) {
return true;
}
?>
?>