This error came up when visiting '/nodejs/stats'.
Notice: Undefined property: stdClass::$name in theme_nodejs_stats_page() (line 323 of /sites/all/modules/nodejs/nodejs.module
It is due to Anonymous users not having a name.
My 1st patch posted on D.O :)
| Comment | File | Size | Author |
|---|---|---|---|
| nodejs.module.patch | 515 bytes | logii |
Comments
Comment #1
afeijogood job!
but actually, I don't think that Anonymous should have permission to see this page
Comment #2
logii commentedThanks!
don't think the permissions matters.
The goal is to allow admins to see the number of anonymous users.
Comment #3
afeijoOops you're right, I confused it a bit :)
Comment #4
arithmetric commentedHi logii,
Thanks for the patch. I have one suggestion: Since Drupal allows the "Anonymous" user's name to be changed on a site-by-site basis, I think your patch would be improved by using the site's setting for the user name. This string should also go through t() so it can be translated. So, you might consider something like:
Comment #5
Anonymous (not verified) commentedthanks all, i've committed a modified version of this here:
http://drupalcode.org/project/nodejs.git/commit/5afb222