From: lpsolit%gmail.com <> Date: Mon, 24 Dec 2007 13:42:05 +0000 (+0000) Subject: Bug 409682: Whine should not add headers for queries with 0 bugs - Patch by Justin... X-Git-Tag: bugzilla-3.1.3~418 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b64f45e6ba9bfb002657204411b8e7686b102f02;p=thirdparty%2Fbugzilla.git Bug 409682: Whine should not add headers for queries with 0 bugs - Patch by Justin Wood (irc: Callek) r/a=LpSolit --- diff --git a/whine.pl b/whine.pl index 963805be69..8f46713216 100755 --- a/whine.pl +++ b/whine.pl @@ -469,7 +469,7 @@ sub run_queries { push @{$thisquery->{'bugs'}}, $bug; } } - unless ($thisquery->{'onemailperbug'}) { + if (!$thisquery->{'onemailperbug'} && @{$thisquery->{'bugs'}}) { push @{$return_queries}, $thisquery; } }