We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0f1f05f + bbbd276 commit f28c780Copy full SHA for f28c780
src/helpers.php
@@ -110,7 +110,7 @@ function backpack_avatar_url($user)
110
{
111
switch (config('backpack.base.avatar_type')) {
112
case 'gravatar':
113
- if (backpack_users_have_email()) {
+ if (backpack_users_have_email() && ! empty($user->email)) {
114
return Gravatar::fallback(config('backpack.base.gravatar_fallback'))->get($user->email);
115
}
116
break;
0 commit comments