diff options
-rwxr-xr-x | Bug.pm | 1 | ||||
-rwxr-xr-x | Bugzilla/Bug.pm | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -101,6 +101,7 @@ sub initBug { $self->{'whoid'} = $user_id; &::SendSQL("SELECT groupset FROM profiles WHERE userid=$self->{'whoid'}"); my $usergroupset = &::FetchOneColumn(); + if (!$usergroupset) { $usergroupset = '0' } $self->{'usergroupset'} = $usergroupset; my $query = " diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index f0274b295..1c51af1a1 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -101,6 +101,7 @@ sub initBug { $self->{'whoid'} = $user_id; &::SendSQL("SELECT groupset FROM profiles WHERE userid=$self->{'whoid'}"); my $usergroupset = &::FetchOneColumn(); + if (!$usergroupset) { $usergroupset = '0' } $self->{'usergroupset'} = $usergroupset; my $query = " |