Fix warning about use of undefined variable, found when endmenu
authoramillar <amillar>
Tue, 21 May 2002 06:15:41 +0000 (06:15 +0000)
committeramillar <amillar>
Tue, 21 May 2002 06:15:41 +0000 (06:15 +0000)
   called from marcimport.pl

C4/Output.pm

index 3af786b..7961aa5 100644 (file)
@@ -137,6 +137,7 @@ sub startmenu{
 
 sub endmenu {
   my ($type) = @_;
+  if ( ! defined $type ) { $type=''; }
   if ($type eq 'issue') {
     open (FILE,"$path/issues-bottom.inc") || die;
   } elsif ($type eq 'opac') {