I'm getting:
notice: Undefined property: stdClass::$profile_homepage in /home/grumble/public_html/scratch/sites/all/modules/realname/realname.module on line 799.
Changing 799 from:
if ($homepage && $account->$homepage) {
to
if ($homepage && isset($account->$homepage)) {
Fixes it. Sorry for the lack of patch, but it's a simple change. Thanks for a great module.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | realname.module.diff | 336 bytes | keinstein |
Comments
Comment #1
keinstein commentedI'll attach another patch. It uses empty() instead of isset(). So it replicates the behaviour of the unpatched code without the warning.
I don't know, which solution is better.
Comment #2
keinstein commentedI'll attach another patch. It uses empty() instead of isset(). So it replicates the behaviour of the unpatched code without the warning.
I don't know, which solution is better.
Comment #3
dave reidFixed in CVS with http://drupal.org/cvs?commit=442286