Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Narno CreditAttribution: Narno commentedFixed, commit diff: http://drupalcode.org/project/gravatar.git/commitdiff/d62abfe
Comment #2
myostrich CreditAttribution: myostrich commentedYou are quick, thanks a lot! :)
Comment #3.0
(not verified) CreditAttribution: commentedremove site info