Bug 2505: Enabled warnings in members/messaging.pl and readingrec.pl.
authorGarry Collum <gcollum@gmail.com>
Mon, 21 Sep 2009 23:27:28 +0000 (19:27 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Tue, 29 Sep 2009 23:11:57 +0000 (19:11 -0400)
Fixed any warnings that appeared in the logs.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
members/messaging.pl
members/readingrec.pl

index 1427973..7ae18e9 100755 (executable)
@@ -19,6 +19,8 @@
 
 
 use strict;
+use warnings;
+
 use CGI;
 use C4::Context;
 use C4::Auth;
@@ -62,7 +64,7 @@ my $branch         = C4::Context->userenv->{'branch'};
 
 $template->param( $borrower );
 
-my $borrower = GetMemberDetails( $borrowernumber );
+$borrower = GetMemberDetails( $borrowernumber );
 
 
     if ( $borrower->{'category_type'} eq 'C') {
index 7ffdfee..ce3fb37 100755 (executable)
@@ -21,6 +21,8 @@
 # Suite 330, Boston, MA  02111-1307 USA
 
 use strict;
+use warnings;
+
 use C4::Auth;
 use C4::Output;
 use CGI;
@@ -34,7 +36,7 @@ my $input=new CGI;
 my $borrowernumber=$input->param('borrowernumber');
 #get borrower details
 my $data=GetMember($borrowernumber,'borrowernumber');
-my $order=$input->param('order');
+my $order=$input->param('order') || '';
 my $order2=$order;
 if ($order2 eq ''){
   $order2="date_due desc";