From: Colin Campbell Date: Mon, 20 Jun 2011 14:48:57 +0000 (+0100) Subject: Bug 5549 : replace curdate with now in a couple of sql lines X-Git-Tag: v3.08.00~239^2~43 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=7c260e550e28eafd0d7fe2ed774b67199c27192a;p=koha_gimpoz Bug 5549 : replace curdate with now in a couple of sql lines duedate is now datetime and comparing with curdate causes a system error --- diff --git a/C4/Members.pm b/C4/Members.pm index 434a018cd6..1f0ac3f995 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -642,7 +642,7 @@ sub IsMemberBlocked { "SELECT COUNT(*) as latedocs FROM issues WHERE borrowernumber = ? - AND date_due < curdate()" + AND date_due < now()" ); $sth->execute($borrowernumber); my $latedocs = $sth->fetchrow_hashref->{'latedocs'}; @@ -680,7 +680,7 @@ sub GetMemberIssuesAndFines { $sth = $dbh->prepare( "SELECT COUNT(*) FROM issues WHERE borrowernumber = ? - AND date_due < curdate()" + AND date_due < now()" ); $sth->execute($borrowernumber); my $overdue_count = $sth->fetchrow_arrayref->[0];