mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/14439] Do not call avatar manager if avatars are disabled
PHPBB3-14439
This commit is contained in:
parent
3c4f150859
commit
68abcb9058
1 changed files with 6 additions and 2 deletions
|
@ -1899,8 +1899,12 @@ class acp_users
|
|||
}
|
||||
}
|
||||
|
||||
// Avatar manager is not initialized if avatars are disabled
|
||||
if (isset($phpbb_avatar_manager))
|
||||
{
|
||||
// Replace "error" strings with their real, localised form
|
||||
$error = $phpbb_avatar_manager->localize_errors($user, $error);
|
||||
}
|
||||
|
||||
$avatar = phpbb_get_user_avatar($user_row, 'USER_AVATAR', true);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue