Closed (fixed)
Project:
Gravatar integration
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
27 Dec 2011 at 14:54 UTC
Updated:
20 Jan 2012 at 03:10 UTC
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 commentedFixed, commit diff: http://drupalcode.org/project/gravatar.git/commitdiff/d62abfe
Comment #2
myostrich commentedYou are quick, thanks a lot! :)
Comment #3.0
(not verified) commentedremove site info