Bug 2505 adding use warnings to edithelp.pl
authorChris Cormack <chrisc@catalyst.net.nz>
Wed, 10 Feb 2010 21:09:34 +0000 (10:09 +1300)
committerGalen Charlton <gmcharlt@gmail.com>
Thu, 11 Feb 2010 03:10:46 +0000 (22:10 -0500)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
edithelp.pl

index 362f678..ba4558f 100755 (executable)
@@ -21,6 +21,7 @@ use strict;
 use C4::Output;
 use C4::Auth;
 use CGI;
+use warnings;
 
 use vars qw($debug);
 
@@ -30,10 +31,10 @@ BEGIN {
 
 our $input = new CGI;
 
-my $type    = $input->param('type');
-my $referer = $input->param('referer');
+my $type    = $input->param('type') || '';
+my $referer = $input->param('referer') || '';
 my $oldreferer = $referer;
-my $help    = $input->param('help');
+my $help    = $input->param('help') || '';
 # strip any DOS-newlines that TinyMCE may have sneaked in
 $help =~ s/\r//g;
 my $error;