http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9091 Bug ID: 9091 Summary: Error in logic CheckBorrowerDebarred Classification: Unclassified Change sponsored?: --- Product: Koha Version: 3.8 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Circulation Assignee: koha-bugs@lists.koha-community.org Reporter: jdeca@smfpl.org CC: gmcharlt@gmail.com, kyle.m.hall@gmail.com In Overdues.pm subroutine CheckBorrowerDebarred. As far as I can tell debarred is 0 or 1 what is the purpose of testing against NOW()? sub CheckBorrowerDebarred { my ($borrowernumber) = @_; my $dbh = C4::Context->dbh; my $query = qq| SELECT debarred FROM borrowers WHERE borrowernumber=? AND debarred > NOW() <==========?? |; my $sth = $dbh->prepare($query); $sth->execute($borrowernumber); my $debarredstatus = $sth->fetchrow; return $debarredstatus; } -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.