[Koha-patches] [PATCH] fix to previous patch - use 'lt', not '<', to compare date strings

Galen Charlton galen.charlton at liblime.com
Mon Apr 20 19:14:14 CEST 2009


---
 circ/returns.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/circ/returns.pl b/circ/returns.pl
index 94a9923..e9f3e4b 100755
--- a/circ/returns.pl
+++ b/circ/returns.pl
@@ -538,7 +538,7 @@ foreach ( sort { $a <=> $b } keys %returneditems ) {
             $ri{duedate} = format_date($duedate);
             my ($borrower) =
               GetMemberDetails( $riborrowernumber{$_}, 0 );
-            $ri{return_overdue} = 1 if ($duedate < $today->output('iso'));
+            $ri{return_overdue} = 1 if ($duedate lt $today->output('iso'));
             $ri{borrowernumber} = $borrower->{'borrowernumber'};
             $ri{borcnum}        = $borrower->{'cardnumber'};
             $ri{borfirstname}   = $borrower->{'firstname'};
-- 
1.5.6.5




More information about the Koha-patches mailing list