aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_users.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/acp/acp_users.php')
-rw-r--r--phpBB/includes/acp/acp_users.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/phpBB/includes/acp/acp_users.php b/phpBB/includes/acp/acp_users.php
index 823f001fe0..e0dcea6d58 100644
--- a/phpBB/includes/acp/acp_users.php
+++ b/phpBB/includes/acp/acp_users.php
@@ -1836,21 +1836,19 @@ class acp_users
}
// Replace "error" strings with their real, localised form
- $err = $error;
- $error = array();
- foreach ($err as $e)
+ foreach ($error as $key => $lang)
{
- if (is_array($e))
+ if (is_array($lang))
{
- $key = array_shift($e);
- $error[] = vsprintf($user->lang($key), $e);
+ $lang_key = array_shift($lang);
+ $error[$key] = vsprintf($user->lang($lang_key), $lang);
}
else
{
- $error[] = $user->lang((string) $e);
+ $error[$key] = $user->lang("$lang");
}
}
-
+
$avatar = get_user_avatar($user_row, 'USER_AVATAR', true);
$template->assign_vars(array(