Topic: Quiet visit and visit timeout
Hi,
If you turn on a quiet visit - i.e. define('PUN_QUIET_VISIT', 1); - then if the user visit timeout has been reached, they are unable to log out without first visiting a page where quiet visit is not defined. For example, if the user is browsing the forum and reach their visit timeout - then click onto another area of my site where I have defined quiet visit, then click on a logout link from that page (i..e straight to login.php?action=out&id=2 etc) they are presented with an error.
The error generated in "login.php" on line 95 (using punBB 1.2.1) is "Unable to update user visit data".
Doing a bit of poking around the source code, it seems that on line 74 of "include/functions.php" the line:
if (!defined('PUN_QUIET_VISIT'))
{
....
prevents $pun_user['logged'] from getting assigned when in quiet visit mode. Hence the database call fails on line 95 of login.php.
Cheers, hope you find a fix (or tell me if i'm doing something wrong),
Andy Cox
p.s. keep up the good work with this software