Bug 2505: Enable warnings in opac-passwd.pl an opac-renew.pl.
authorGarry Collum <gcollum@gmail.com>
Wed, 12 Aug 2009 18:09:02 +0000 (14:09 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Thu, 13 Aug 2009 01:28:24 +0000 (21:28 -0400)
Fixed resulting warnings in opac-renew.pl.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
opac/opac-passwd.pl
opac/opac-renew.pl

index 491cce0..ca502ab 100755 (executable)
@@ -19,6 +19,7 @@
 # Suite 330, Boston, MA  02111-1307 USA
 
 use strict;
+use warnings;
 
 use CGI;
 
index 88bbacb..205f48a 100755 (executable)
@@ -4,6 +4,9 @@
 # adapted for use in the hlt opac by finlay@katipo.co.nz 29/11/2002
 #script to renew items from the web
 
+use strict;
+use warnings;
+
 use CGI;
 use C4::Circulation;
 use C4::Auth;
@@ -21,7 +24,7 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
        }
 ); 
 my @items          = $query->param('item');
-my $borrowernumber = $query->param('borrowernumber') || $query->param('bornum');
+$borrowernumber = $query->param('borrowernumber') || $query->param('bornum');
 my $opacrenew = C4::Context->preference("OpacRenewalAllowed");
 
 for my $itemnumber ( @items ) {