[Patches] [PATCH] Bug 7287 : Fix overdue notification if a branch given as
koha-patchbot at kohaaloha.com
koha-patchbot at kohaaloha.com
Sun Dec 4 16:45:03 NZDT 2011
From: Sophie Meynieux <sophie.meynieux at biblibre.com>
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 <chrisc at catalyst.net.nz>
---
misc/cronjobs/overdue_notices.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl
index 5347f69..5937e37 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";
--
1.7.5.4
More information about the Patches
mailing list