Bug 3449: Fixes the perpetual error message that pops up when filtering by tag reviewer.
[koha.git] / members / setdebar.pl
index 561afd3..55a35ee 100755 (executable)
@@ -17,7 +17,6 @@
 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
 # Suite 330, Boston, MA  02111-1307 USA
 
-# $Id$
 
 =head1 setdebar.pl
 
@@ -28,6 +27,7 @@ by oleonard@athenscounty.lib.oh.us
 =cut
 
 use strict;
+use warnings;
 
 use CGI;
 use C4::Context;
@@ -40,7 +40,7 @@ $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');