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
|
util.inc
|
||||||
prefs.inc
|
prefs.inc
|
||||||
forum_show.inc
|
forum_show.inc
|
||||||
|
db_forum.inc
|
||||||
host.inc
|
host.inc
|
||||||
user/
|
user/
|
||||||
prefs.php
|
prefs.php
|
||||||
|
|
|
@ -291,6 +291,7 @@ function getThreadLastVisited($user, $thread){
|
||||||
/* $user->id - int
|
/* $user->id - int
|
||||||
* $thread->id - int
|
* $thread->id - int
|
||||||
*/
|
*/
|
||||||
|
if (!$user) return $user;
|
||||||
if ($user->id==""){ //Disable read/unread stuff for users that are not logged in
|
if ($user->id==""){ //Disable read/unread stuff for users that are not logged in
|
||||||
$user->thread_last_visited=time(); //Always display as visited
|
$user->thread_last_visited=time(); //Always display as visited
|
||||||
return $user;
|
return $user;
|
||||||
|
|
Loading…
Reference in New Issue