Bug 27276: Fix syntax error

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Kyle M Hall 2021-01-04 08:12:25 -05:00 committed by Jonathan Druart
parent f228c9ee9f
commit 4f112b782b
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,8 @@ sub force_borrower_messaging_defaults {
my $sql =
q|SELECT DISTINCT bo.borrowernumber, bo.categorycode FROM borrowers bo
LEFT JOIN borrower_message_preferences mp USING (borrowernumber)
WHERE 1|
WHERE 1|;
if ( $since ) {
$sql .= " AND bo.dateenrolled >= ?";
}