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.

CommentFileSizeAuthor
#1 realname.module.diff336 byteskeinstein

Comments

keinstein’s picture

StatusFileSize
new336 bytes

I'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.

keinstein’s picture

I'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.

dave reid’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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