Bug 7287 : Fix overdue notification if a branch given as parameter does not have...
authorSophie Meynieux <sophie.meynieux@biblibre.com>
Fri, 2 Dec 2011 09:04:25 +0000 (10:04 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 14 Dec 2011 17:10:45 +0000 (18:10 +0100)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
misc/cronjobs/overdue_notices.pl

index 21e7dc3..6e723b2 100755 (executable)
@@ -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";