summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthedavidmeister2013-02-02 09:43:13 (GMT)
committer swentel2013-02-02 09:43:13 (GMT)
commit63a299b967b111008cde67d67400ec64b05b3fe6 (patch)
treed27cf2a64ac3ce20f1892f1df67b42f4c6d167a6
parent40ab77f12ceedfa2af60b77360fb2bdbb7493abb (diff)
Issue #1166928 by thedavidmeister: Fixed Display Suite does not honor Gravatar when displaying a user's picture.
-rw-r--r--ds.module4
1 files changed, 1 insertions, 3 deletions
diff --git a/ds.module b/ds.module
index 7d23ca5..28cbe0f 100644
--- a/ds.module
+++ b/ds.module
@@ -1246,9 +1246,7 @@ function ds_return_picture($entity) {
// Gravatar support.
if (module_exists('gravatar')) {
- if (!isset($entity->mail)) {
- $entity = _gravatar_load_account($entity);
- }
+ $entity = _gravatar_load_account($entity);
$entity->picture = _gravatar_get_account_user_picture($entity);
}