bugfix [ 1025755 ] UILevel can't be set to beginner (0)

This commit is contained in:
JT Smith 2004-09-12 17:01:15 +00:00
parent 6afe9da116
commit 40a36966dd
3 changed files with 7 additions and 12 deletions

View file

@ -297,7 +297,7 @@ sub profileField {
$class = shift;
$fieldName = shift;
$value = shift;
$value = WebGUI::Macro::negate($value); # Len Kranendonk - 20030701: fixed security hole
$value = WebGUI::Macro::negate($value);
if (defined $value) {
$class->{_profile}{$fieldName} = $value;
WebGUI::SQL->write("delete from userProfileData where userId=".quote($class->{_userId})." and fieldName=".quote($fieldName));