mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
#10137 - users without avatar caused error message.
git-svn-id: file:///svn/phpbb/trunk@7407 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1442,7 +1442,11 @@ function phpbb_import_avatar($user_avatar)
|
||||
function phpbb_get_avatar_height($user_avatar)
|
||||
{
|
||||
global $convert_row;
|
||||
|
||||
|
||||
if (empty($convert_row['user_avatar_type']))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return get_avatar_height($user_avatar, 'phpbb_avatar_type', $convert_row['user_avatar_type']);
|
||||
}
|
||||
|
||||
@@ -1454,6 +1458,11 @@ function phpbb_get_avatar_width($user_avatar)
|
||||
{
|
||||
global $convert_row;
|
||||
|
||||
if (empty($convert_row['user_avatar_type']))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
return get_avatar_width($user_avatar, 'phpbb_avatar_type', $convert_row['user_avatar_type']);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user