From 466e62526fb13b828d17005a15a6c57e64ced6b4 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 6 Feb 2015 09:44:33 -0500 Subject: [PATCH] Bug 13240 [QA Followup] --- misc/cronjobs/advance_notices.pl | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/misc/cronjobs/advance_notices.pl b/misc/cronjobs/advance_notices.pl index 9112935..3bf0a9e 100755 --- a/misc/cronjobs/advance_notices.pl +++ b/misc/cronjobs/advance_notices.pl @@ -240,8 +240,8 @@ UPCOMINGITEM: foreach my $upcoming ( @$upcoming_dues ) { if ( $borrower_preferences->{'wants_digest'} ) { # cache this one to process after we've run through all of the items. - $due_digest->{$upcoming->{borrowernumber}}{email} = $from_address; - $due_digest->{$upcoming->{borrowernumber}}{count}++; + $due_digest->{ $upcoming->{borrowernumber} }->{email} = $from_address; + $due_digest->{ $upcoming->{borrowernumber} }->{count}++; } else { my $biblio = C4::Biblio::GetBiblioFromItemNumber( $upcoming->{'itemnumber'} ); my $letter_type = 'DUE'; @@ -274,8 +274,8 @@ UPCOMINGITEM: foreach my $upcoming ( @$upcoming_dues ) { if ( $borrower_preferences->{'wants_digest'} ) { # cache this one to process after we've run through all of the items. - $upcoming_digest->{$upcoming->{borrowernumber}}{email} = $from_address; - $upcoming_digest->{$upcoming->{borrowernumber}}{count}++; + $upcoming_digest->{ $upcoming->{borrowernumber} }->{email} = $from_address; + $upcoming_digest->{ $upcoming->{borrowernumber} }->{count}++; } else { my $biblio = C4::Biblio::GetBiblioFromItemNumber( $upcoming->{'itemnumber'} ); my $letter_type = 'PREDUE'; -- 1.7.2.5