aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_groups.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2013-10-24 13:14:51 +0200
committerMarc Alexander <admin@m-a-styles.de>2013-10-24 13:14:51 +0200
commit3c632fa8e4af4b9b666ddbab2de77d42716ce2b2 (patch)
treee11fd36c74aabdf1ca48bf50851a5aa0848b6d5d /phpBB/includes/acp/acp_groups.php
parent2adf3d7a3473fe8d01e850329bd935e97f09668d (diff)
downloadforums-3c632fa8e4af4b9b666ddbab2de77d42716ce2b2.tar
forums-3c632fa8e4af4b9b666ddbab2de77d42716ce2b2.tar.gz
forums-3c632fa8e4af4b9b666ddbab2de77d42716ce2b2.tar.bz2
forums-3c632fa8e4af4b9b666ddbab2de77d42716ce2b2.tar.xz
forums-3c632fa8e4af4b9b666ddbab2de77d42716ce2b2.zip
[ticket/11842] Use group_id 0 and correct avatar name after creating group
It seems like the function group_correct_avatar() was forgotten while adding the new avatar system. We now pass the group_id 0 to the upload avatar and let the function group_correct_avatar() fix the avatar filename after creating the group like it was done previously. PHPBB3-11842
Diffstat (limited to 'phpBB/includes/acp/acp_groups.php')
-rw-r--r--phpBB/includes/acp/acp_groups.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_groups.php b/phpBB/includes/acp/acp_groups.php
index ad29a5521b..e0f2e0ed8d 100644
--- a/phpBB/includes/acp/acp_groups.php
+++ b/phpBB/includes/acp/acp_groups.php
@@ -325,6 +325,10 @@ class acp_groups
// This is normalised data, without the group_ prefix
$avatar_data = \phpbb\avatar\manager::clean_row($group_row);
+ if (!isset($avatar_data['id']))
+ {
+ $avatar_data['id'] = $group_id;
+ }
}