[Koha-patches] [PATCH] Bug 2505 adding use warnings to edithelp.pl
Chris Cormack
chrisc at catalyst.net.nz
Wed Feb 10 22:09:34 CET 2010
---
edithelp.pl | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/edithelp.pl b/edithelp.pl
index 362f678..ba4558f 100755
--- a/edithelp.pl
+++ b/edithelp.pl
@@ -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;
--
1.6.3.3
More information about the Koha-patches
mailing list