Fixed Last Visit Not Updated If User Unconfirms Email


Well-known member
I ran into a situation where a user posted, but their last visit was 2 years ago. I did some digging, and the only unique thing about that user is they made the port at 11:27 AM, changed their email at 11:28 AM but didn't confirm it (so they are still as guest/unconfirmed status a few days later).

Is the clean up task that runs hourly to update last visits from the session activity table maybe ignoring the user unless they have a user state of "valid"?