Merge branch '3.1.x'

This commit is contained in:
Marc Alexander 2016-01-31 20:05:07 +01:00
commit 0d93af8324

View file

@ -1929,8 +1929,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);