Bug 2505: Added warnings to members/members-home.pl and members/setstatus.pl
authorGarry Collum <gcollum@gmail.com>
Thu, 24 Sep 2009 15:47:17 +0000 (11:47 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Tue, 29 Sep 2009 23:11:34 +0000 (19:11 -0400)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
members/members-home.pl
members/setstatus.pl

index 32531c2..2755452 100755 (executable)
@@ -16,6 +16,8 @@
 # Suite 330, Boston, MA  02111-1307 USA
 
 use strict;
+use warnings;
+
 use CGI;
 use C4::Auth;
 use C4::Output;
index c2b7a38..fc27c17 100755 (executable)
@@ -23,6 +23,7 @@
 # Suite 330, Boston, MA  02111-1307 USA
 
 use strict;
+use warnings;
 
 use CGI;
 use C4::Context;
@@ -36,11 +37,11 @@ my $flagsrequired;
 $flagsrequired->{borrowers}=1;
 my ($loggedinuser, $cookie, $sessionID) = checkauth($input, 0, $flagsrequired);
 
-my $destination = $input->param("destination");
+my $destination = $input->param("destination") || '';
 my $cardnumber = $input->param("cardnumber");
 my $borrowernumber=$input->param('borrowernumber');
 my $status = $input->param('status');
-my $reregistration = $input->param('reregistration');
+my $reregistration = $input->param('reregistration') || '';
 
 my $dbh = C4::Context->dbh;
 my $dateexpiry;