I installed OpenID selector module and Gravatar. If I register with an OpenID, and I receive the following error in many places.

Notice: Undefined variable: mail in _gravatar_get_account_user_picture() (line 183 of /xxx/sites/all/modules/gravatar/gravatar.module).

The following code in function _gravatar_get_account_user_picture has problem:

    if (!empty($account->mail)) {
      return gravatar_get_gravatar($mail);
    }

and it should be:

    if (!empty($account->mail)) {
      return gravatar_get_gravatar($account->mail);
    }

Comments

Narno’s picture

Assigned: Unassigned » Narno
Status: Active » Fixed
myostrich’s picture

You are quick, thanks a lot! :)

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

remove site info