bug fix : add security in check of notify_id
authorbtoumi <btoumi>
Thu, 5 Apr 2007 14:08:17 +0000 (14:08 +0000)
committerbtoumi <btoumi>
Thu, 5 Apr 2007 14:08:17 +0000 (14:08 +0000)
C4/Circulation/Fines.pm

index f65b30c..b3fea32 100644 (file)
@@ -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);