mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-25 20:44:01 +01:00
Merge pull request #4150 from rxu/ticket/14439
[ticket/14439] Do not call avatar manager if avatars are disabled
This commit is contained in:
commit
89a34ff033
@ -1899,8 +1899,12 @@ class acp_users
|
||||
}
|
||||
}
|
||||
|
||||
// Replace "error" strings with their real, localised form
|
||||
$error = $phpbb_avatar_manager->localize_errors($user, $error);
|
||||
// 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…
x
Reference in New Issue
Block a user