diff options
author | dave%intrec.com <> | 2000-09-02 11:44:54 +0200 |
---|---|---|
committer | dave%intrec.com <> | 2000-09-02 11:44:54 +0200 |
commit | d733399f5e933a3b7579b4fd0c623c241bd9b1b9 (patch) | |
tree | c2bc6a4ebef90115d6120bb90c5451bc50aaa6a7 /Bugzilla/Bug.pm | |
parent | 3a93ee47ae7787d86a431b3463e2a3e7702a6c7f (diff) | |
download | bugzilla-d733399f5e933a3b7579b4fd0c623c241bd9b1b9.tar.gz bugzilla-d733399f5e933a3b7579b4fd0c623c241bd9b1b9.tar.xz |
Fix for bug 46913: xml.cgi produces SQL error when accessed while not
logged in yet. Thanks to luke_harless@attglobal.net for discovering this
one.
Diffstat (limited to 'Bugzilla/Bug.pm')
-rwxr-xr-x | Bugzilla/Bug.pm | 1 |
1 files changed, 1 insertions, 0 deletions
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 = " |