mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
ok, this was a nasty one. :D Do not overwrite user ranks if the group rank is set to "user default". :o
git-svn-id: file:///svn/phpbb/trunk@7175 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -2331,6 +2331,12 @@ function group_set_user_default($group_id, $user_id_ary, $group_attributes = fal
|
||||
continue;
|
||||
}
|
||||
|
||||
// Do not update the rank if it is set to "user default"
|
||||
if (strpos($attribute, 'group_rank') === 0 && !$group_attributes[$attribute])
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
settype($group_attributes[$attribute], $type);
|
||||
$sql_ary[str_replace('group_', 'user_', $attribute)] = $group_attributes[$attribute];
|
||||
}
|
||||
|
Reference in New Issue
Block a user