Changeset 20414

Show
Ignore:
Timestamp:
28.08.2009 09:58:05 (10 years ago)
Author:
kjdon
Message:

check whether fedora_version is defined before using it, to avoid an undefined value warning

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugouts/FedoraMETSPlugout.pm

    r19216 r20414  
    8989    my $extra_schema = undef; 
    9090 
    91     if ($ENV{'FEDORA_VERSION'} =~ m/^2/) { # checking if major version is 2 
     91    if (defined $ENV{'FEDORA_VERSION'} && $ENV{'FEDORA_VERSION'} =~ m/^2/) { # checking if major version is 2 
    9292        $extra_schema = "http://www.fedora.info/definitions/1/0/mets-fedora-ext.xsd"; 
    9393    }