]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch by tom@platte.com (Tom Schutter) -- wasn't working if no groups
authorterry%mozilla.org <>
Tue, 12 Oct 1999 23:52:25 +0000 (23:52 +0000)
committerterry%mozilla.org <>
Tue, 12 Oct 1999 23:52:25 +0000 (23:52 +0000)
had isbuggroup set.

sanitycheck.cgi

index 0805f063ae4d754e7601b57321de646fb20c442a..0f89b2543a4e621a8db4dd4ec5b1739f613dab87 100755 (executable)
@@ -87,6 +87,9 @@ while (my $bit = FetchOneColumn()) {
     
 SendSQL("select sum(bit) from groups where isbuggroup != 0");
 my $buggroupset = FetchOneColumn();
+if ($buggroupset eq "") {
+    $buggroupset = 0;
+}
 SendSQL("select bug_id, groupset from bugs where groupset & $buggroupset != groupset");
 while (@row = FetchSQLData()) {
     Alert("Bad groupset $row[1] found in bug " . BugLink($row[0]));