aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2007-08-04 13:53:19 +0000
committerHenry Sudhof <kellanved@phpbb.com>2007-08-04 13:53:19 +0000
commit5d5df25f758ebec42d5202e97bfa3cc3c026b281 (patch)
tree5bb7d98c19b0c9b15fb1369bb474d35b4cc36502 /phpBB/includes/functions_user.php
parent92b02006fee63fd41c65cee0c7f79f7f62517f75 (diff)
downloadforums-5d5df25f758ebec42d5202e97bfa3cc3c026b281.tar
forums-5d5df25f758ebec42d5202e97bfa3cc3c026b281.tar.gz
forums-5d5df25f758ebec42d5202e97bfa3cc3c026b281.tar.bz2
forums-5d5df25f758ebec42d5202e97bfa3cc3c026b281.tar.xz
forums-5d5df25f758ebec42d5202e97bfa3cc3c026b281.zip
#13961 - the fix is not perfect, we now nuke the avatar/rank when leaving a group - no matter what.
git-svn-id: file:///svn/phpbb/trunk@8005 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index 2decddb54f..3d6e3d351a 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -2710,7 +2710,7 @@ function group_user_del($group_id, $user_id_ary = false, $username_ary = false,
{
if (isset($sql_where_ary[$gid]) && sizeof($sql_where_ary[$gid]))
{
- group_set_user_default($gid, $sql_where_ary[$gid], $special_group_data[$gid]);
+ group_set_user_default($gid, $sql_where_ary[$gid], $special_group_data[$gid], false, true);
}
}
unset($special_group_data);
@@ -2892,7 +2892,7 @@ function group_validate_groupname($group_id, $group_name)
*
* @private
*/
-function group_set_user_default($group_id, $user_id_ary, $group_attributes = false, $update_listing = false, $same_group = false)
+function group_set_user_default($group_id, $user_id_ary, $group_attributes = false, $update_listing = false, $overwrite = false)
{
global $db;
@@ -2930,7 +2930,7 @@ function group_set_user_default($group_id, $user_id_ary, $group_attributes = fal
if (isset($group_attributes[$attribute]))
{
// If we are about to set an avatar or rank, we will not overwrite with empty, unless we are not actually changing the default group
- if (!$same_group && (strpos($attribute, 'group_avatar') === 0 || strpos($attribute, 'group_rank') === 0) && !$group_attributes[$attribute])
+ if (!$overwrite && (strpos($attribute, 'group_avatar') === 0 || strpos($attribute, 'group_rank') === 0) && !$group_attributes[$attribute])
{
continue;
}