Bug 5370: Fix all references to koha.org
[koha_fer] / misc / cronjobs / notifyMailsOp.pl
index 720ffbc..630b159 100755 (executable)
@@ -1,4 +1,6 @@
+#!/usr/bin/perl
 use strict;
+#use warnings; FIXME - Bug 2505
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
@@ -47,8 +49,6 @@ sub GetBorrowerNotifys{
                        AND
                        (notifys.borrowernumber=issues.borrowernumber AND notifys.itemnumber=issues.itemnumber)
                        AND
-                       issues.returndate IS NULL
-                       AND
                        notifys.borrowernumber=?
                        AND notify_send_date IS NULL");
                        $sth2->execute($borrowernumber);