Changeset 4225


Ignore:
Timestamp:
2003-05-05T14:32:06+12:00 (21 years ago)
Author:
jrm21
Message:

if the "removeprefix" option makes the metadata value empty, we skip this
entry. (Tidies perl warning output).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/classify/AZCompactList.pm

    r3540 r4225  
    263263        if ($self->{'removeprefix'}) {
    264264            $metavalue =~ s/^$self->{'removeprefix'}//;
     265
     266            # check that it's not now empty
     267            if (!$metavalue) {next;}
    265268        }
    266269
     
    406409        if ($self->{'removeprefix'}) {
    407410            $formatted_node =~ s/^$self->{'removeprefix'}//;
     411            # check that it's not now empty
     412            if (!$formatted_node) {next;}
    408413        }
    409414
Note: See TracChangeset for help on using the changeset viewer.