mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00: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:
parent
07638ea5c1
commit
355c62cd3c
1 changed files with 6 additions and 0 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue