mirror of https://github.com/BOINC/boinc.git
Deal with error case that occurs in PHP logs
svn path=/trunk/boinc/; revision=6124
This commit is contained in:
parent
159acff3a2
commit
2e02ac23be
|
@ -6422,6 +6422,7 @@ Bruce 11 May 2005
|
|||
util.inc
|
||||
prefs.inc
|
||||
forum_show.inc
|
||||
db_forum.inc
|
||||
host.inc
|
||||
user/
|
||||
prefs.php
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue