1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-21 00:02:18 +02:00

[ticket/14439] Do not call avatar manager if avatars are disabled

PHPBB3-14439
This commit is contained in:
rxu 2016-01-31 23:45:24 +07:00
parent 3c4f150859
commit 68abcb9058

View File

@ -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);