An edge case, admittedly, but one worth fixing.

My partner noted some really odd data on the user profile page for some users that have registered but not yet accessed the site. "last seen 40 years, 32 days ago" or similar.

So after digging around, I found the culprit in template_preprocess_author_pane() and with a bit of fiddling, rolled my first patch ever!

The code checks whether $account->access is "0" before populating the $variables['last_active'] with the time interval.

CommentFileSizeAuthor
last_active.patch1.08 KBcarlthuringer

Comments

michelle’s picture

Very edge case since only admins can see profiles of people who have never logged in. :) I'm fine with fixing it, though. Not sure when I'll work on AP again but wanted to respond so you don't feel ignored if it's a while before I get to it.

Michelle

michelle’s picture

Status: Active » Fixed

Committed a change to display "Never" when the user has never accessed the site.

Michelle

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.