summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterry%mozilla.org <>1999-10-13 01:52:25 +0200
committerterry%mozilla.org <>1999-10-13 01:52:25 +0200
commita8c1b9f56be3f2f65095182591828f16bc6d67c7 (patch)
treea9564963073ca5b3a085e22527cb2d13cfb1de02
parentbbb9c02f500b84986064c6533ced4b35f7435efa (diff)
downloadbugzilla-a8c1b9f56be3f2f65095182591828f16bc6d67c7.tar.gz
bugzilla-a8c1b9f56be3f2f65095182591828f16bc6d67c7.tar.xz
Patch by tom@platte.com (Tom Schutter) -- wasn't working if no groups
had isbuggroup set.
-rwxr-xr-xsanitycheck.cgi3
1 files changed, 3 insertions, 0 deletions
diff --git a/sanitycheck.cgi b/sanitycheck.cgi
index 0805f063a..0f89b2543 100755
--- a/sanitycheck.cgi
+++ b/sanitycheck.cgi
@@ -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]));