From: terry%mozilla.org <> Date: Tue, 12 Oct 1999 23:52:25 +0000 (+0000) Subject: Patch by tom@platte.com (Tom Schutter) -- wasn't working if no groups X-Git-Tag: bugzilla-2.8~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8c1b9f56be3f2f65095182591828f16bc6d67c7;p=thirdparty%2Fbugzilla.git Patch by tom@platte.com (Tom Schutter) -- wasn't working if no groups had isbuggroup set. --- diff --git a/sanitycheck.cgi b/sanitycheck.cgi index 0805f063ae..0f89b2543a 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]));