---
help.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/help.pl b/help.pl
index 97f3462..476129b 100755
--- a/help.pl
+++ b/help.pl
@@ -32,7 +32,7 @@ our $refer = $query->param('url');
$refer = $query->referer() if !$refer || $refer eq 'undefined';
$refer =~ /koha\/(.*)\.pl/;
-my $file = $1;
+my $file = $1 || 'mainpage';
$file =~ s/[^a-zA-Z0-9_\-\/]*//g;
my $from = "help/$file.tt";
--
1.7.9.5
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/