mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00: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:
parent
94f052713f
commit
bc698d1551
1 changed files with 10 additions and 1 deletions
|
@ -1443,6 +1443,10 @@ 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']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue