Closed (fixed)
Project:
Author Pane
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Dec 2010 at 00:03 UTC
Updated:
19 Dec 2010 at 15:40 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| last_active.patch | 1.08 KB | carlthuringer |
Comments
Comment #1
michelleVery 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
Comment #2
michelleCommitted a change to display "Never" when the user has never accessed the site.
Michelle