Ignore:
Timestamp:
2022-09-07T17:36:06+12:00 (3 months ago)
Author:
davidb
Message:

Test first if defined, to avoid unassigned variable warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/CSVPlugin.pm

    r36533 r36587  
    107107    $self->{'metapass_srcdoc'} = {}; # which segments have valid metadata_srcdoc
    108108
    109     if ($self->{'use_namespace_for_field_names'} =~ /^\s*$/) {
     109    if ((defined $self->{'use_namespace_for_field_names'}) && ($self->{'use_namespace_for_field_names'} =~ m/^\s*$/)) {
    110110    $self->{'use_namespace_for_field_names'} = undef;
    111111    }
Note: See TracChangeset for help on using the changeset viewer.