summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xBug.pm1
-rwxr-xr-xBugzilla/Bug.pm1
2 files changed, 2 insertions, 0 deletions
diff --git a/Bug.pm b/Bug.pm
index f0274b295..1c51af1a1 100755
--- a/Bug.pm
+++ b/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 = "
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 = "