Browse Source
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>3.2.x
Joe Atzberger
15 years ago
committed by
Galen Charlton
1 changed files with 11 additions and 22 deletions
Loading…
Reference in new issue