]> git.koha-community.org Git - koha.git/commit
checkoverdues should not require $dbh
authorJoe Atzberger <joe.atzberger@liblime.com>
Sat, 20 Jun 2009 00:32:42 +0000 (19:32 -0500)
committerGalen Charlton <galen.charlton@liblime.com>
Wed, 24 Jun 2009 14:35:12 +0000 (09:35 -0500)
commit5169a4cb4a9988f25bee99e7af56293c27f0ec3c
tree6ecdc5ecb17e5d5b01bb0a0c2340cc77ed37c367
parenta6890b2066b50641bfe174600d6d1f423e945ea4
checkoverdues should not require $dbh

Passing $dbh around is an ancient style that doesn't know
to use C4::Context.  C4::Context->dbh is efficient, especially
for modules that already use Context, including almost all C4.

I also internalized $today into the SQL using NOW() in the query
and removed sth->finish.  Even though I dislike the return style
that gives the count, then the array, I left it becuase I don't
have time to fix/test all the callers.  However, I did convert
it so it doesn't require a $count variable and its own loop.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/Overdues.pm