From fd150f24132002b5a49c91591536a0e51d07e184 Mon Sep 17 00:00:00 2001 From: btoumi Date: Thu, 5 Apr 2007 14:08:17 +0000 Subject: [PATCH] bug fix : add security in check of notify_id --- C4/Circulation/Fines.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Circulation/Fines.pm b/C4/Circulation/Fines.pm index f65b30c734..b3fea32d69 100644 --- a/C4/Circulation/Fines.pm +++ b/C4/Circulation/Fines.pm @@ -658,7 +658,8 @@ sub NumberNotifyId{ my $env; my $query=qq| SELECT distinct(notify_id) FROM accountlines - WHERE borrowernumber=?|; + WHERE borrowernumber=? + AND notify_id != 0|; my @notify; my $sth=$dbh->prepare($query); $sth->execute($borrowernumber); -- 2.39.5