aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2013-07-12 13:40:30 -0400
committerMarc Alexander <admin@m-a-styles.de>2013-07-12 13:40:30 -0400
commitda8e35ac77c5d78f327d08fa1a9d0ff21ed38e83 (patch)
treeebf8f4f42807850c879130d7c0543e91f80b91b5 /phpBB
parent16aeaed7bda590268c621216a42818ec64c1f37b (diff)
downloadforums-da8e35ac77c5d78f327d08fa1a9d0ff21ed38e83.tar
forums-da8e35ac77c5d78f327d08fa1a9d0ff21ed38e83.tar.gz
forums-da8e35ac77c5d78f327d08fa1a9d0ff21ed38e83.tar.bz2
forums-da8e35ac77c5d78f327d08fa1a9d0ff21ed38e83.tar.xz
forums-da8e35ac77c5d78f327d08fa1a9d0ff21ed38e83.zip
[ticket/11548] Fix incorrect usage of array_map on acp groups page
The array_map was only ran on small parts of the actual error array instead of the whole one. This resulted in the output of the language variables' names rather than their actual value. PHPBB3-11548
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/acp/acp_groups.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_groups.php b/phpBB/includes/acp/acp_groups.php
index 9b9ea38e07..c9d476b8ae 100644
--- a/phpBB/includes/acp/acp_groups.php
+++ b/phpBB/includes/acp/acp_groups.php
@@ -437,7 +437,7 @@ class acp_groups
if ($validation_error = validate_data($submit_ary, $validation_checks))
{
// Replace "error" string with its real, localised form
- $error = array_merge($error, array_map(array(&$user, 'lang'), $validation_error));
+ $error = array_merge($error, $validation_error);
}
if (!sizeof($error))
@@ -530,6 +530,7 @@ class acp_groups
if (sizeof($error))
{
+ $error = array_map(array(&$user, 'lang'), $error);
$group_rank = $submit_ary['rank'];
$group_desc_data = array(