From 185806450150d84f7b877b06c146d7070b3ca1fa Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Thu, 11 Feb 2010 10:09:34 +1300 Subject: [PATCH] Bug 2505 adding use warnings to edithelp.pl Signed-off-by: Galen Charlton --- edithelp.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/edithelp.pl b/edithelp.pl index 362f678e86..ba4558fd72 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; -- 2.39.5