diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2012-11-25 17:01:21 +0100 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2012-11-25 17:01:21 +0100 |
| commit | a77fcdb5f93ed291c223c445a46a5641cfdb27ea (patch) | |
| tree | 1c5e476fd10fc1073b5f5214b034f1597a9fbe12 /phpBB/includes/ucp/ucp_groups.php | |
| parent | f8256ed00f5ecc95fbf9f69fd2e8de2a92bccec6 (diff) | |
| download | forums-a77fcdb5f93ed291c223c445a46a5641cfdb27ea.tar forums-a77fcdb5f93ed291c223c445a46a5641cfdb27ea.tar.gz forums-a77fcdb5f93ed291c223c445a46a5641cfdb27ea.tar.bz2 forums-a77fcdb5f93ed291c223c445a46a5641cfdb27ea.tar.xz forums-a77fcdb5f93ed291c223c445a46a5641cfdb27ea.zip | |
[feature/avatars] Implement better treatment of avatar errors
PHPBB3-10018
Diffstat (limited to 'phpBB/includes/ucp/ucp_groups.php')
| -rw-r--r-- | phpBB/includes/ucp/ucp_groups.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/includes/ucp/ucp_groups.php b/phpBB/includes/ucp/ucp_groups.php index dd03f332ff..3860d22917 100644 --- a/phpBB/includes/ucp/ucp_groups.php +++ b/phpBB/includes/ucp/ucp_groups.php @@ -679,16 +679,16 @@ class ucp_groups // Merge any avatars errors into the primary error array // Drivers use lang constants, so we need to map to the actual strings - foreach ($avatar_error as $e) + foreach ($avatar_error as $lang) { - if (is_array($e)) + if (is_array($lang)) { - $key = array_shift($e); - $error[] = vsprintf($user->lang($key), $e); + $key = array_shift($lang); + $error[] = vsprintf($user->lang($key), $lang); } else { - $error[] = $user->lang((string) $e); + $error[] = $user->lang("$lang"); } } |
