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:
Meik Sievertsen 2007-03-12 16:12:41 +00:00
parent 07638ea5c1
commit 355c62cd3c

View file

@ -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];
}