From c7b88ee1d151772df5d537baf2a993eef15a2158 Mon Sep 17 00:00:00 2001 From: Cesar G Date: Thu, 17 Oct 2013 21:29:02 -0700 Subject: [PATCH] [ticket/11923] Attempt to translate errors only if user can change avatar. PHPBB3-11923 --- phpBB/includes/ucp/ucp_profile.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php index 8ae7acaa11..3f58ce20b4 100644 --- a/phpBB/includes/ucp/ucp_profile.php +++ b/phpBB/includes/ucp/ucp_profile.php @@ -658,10 +658,10 @@ class ucp_profile )); } } - } - // Replace "error" strings with their real, localised form - $error = $phpbb_avatar_manager->localize_errors($user, $error); + // Replace "error" strings with their real, localised form + $error = $phpbb_avatar_manager->localize_errors($user, $error); + } $avatar = phpbb_get_user_avatar($user->data, 'USER_AVATAR', true);