From 10913f8a0e7b46dac6c34edba6d8322c1c34903b Mon Sep 17 00:00:00 2001 From: Sophie Meynieux Date: Fri, 2 Dec 2011 10:04:25 +0100 Subject: [PATCH] Bug 7287 : Fix overdue notification if a branch given as parameter does not have rules Signed-off-by: Chris Cormack Signed-off-by: Paul Poulain (cherry picked from commit a1e3174668181c06baea11161466a1f7bf3a84c4) Signed-off-by: Chris Nighswonger --- misc/cronjobs/overdue_notices.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl index 698b87822f..1d879d9031 100755 --- a/misc/cronjobs/overdue_notices.pl +++ b/misc/cronjobs/overdue_notices.pl @@ -305,7 +305,7 @@ if (@branchcodes) { @branches = grep { $seen{$_} } @overduebranches; - if (@overduebranches) { + if (@branches) { my $branch_word = scalar @branches > 1 ? 'branches' : 'branch'; $verbose and warn "$branch_word @branches have overdue rules\n"; -- 2.39.5