Change to correct layout problem when OpacNav is empty.
[koha.git] / tools / pdfViewer.pl
index d6ec298..3ca61a8 100755 (executable)
@@ -20,7 +20,7 @@
 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
 # Suite 330, Boston, MA  02111-1307 USA
 
-require Exporter;
+
 
 use strict;
 use C4::Context;
@@ -33,8 +33,9 @@ my $tmpFileName = $cgi->param('tmpFileName');
 print "Content-Disposition: attachment; filename = $filename\n\n";
 print $cgi->header(-type => 'application/pdf'),
       $cgi->start_html(-title=>"Codify to PDF");
-open fh, "<$tmpFileName";
-while (<fh>) {
- print;
+open FH, "<$tmpFileName";
+while (<FH>) {
      print;
 }
+close FH;
 print $cgi->end_html();