Show
Ignore:
Timestamp:
06.06.2013 12:01:18 (6 years ago)
Author:
kjdon
Message:

check if defined before setting sortfields, as there may not be any

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/lucenebuilder.pm

    r27563 r27564  
    417417    #$self->{'buildproc'}->set_indexfieldmap ($self->{'indexfieldmap'}); 
    418418    $self->{'buildproc'}->set_levels ($local_levels); 
    419     $self->{'buildproc'}->set_sortfields ($self->{'collect_cfg'}->{'sortfields'});; 
     419    if (defined $self->{'collect_cfg'}->{'sortfields'}) { 
     420    $self->{'buildproc'}->set_sortfields ($self->{'collect_cfg'}->{'sortfields'}); 
     421    } 
    420422 
    421423    $self->{'buildproc'}->set_db_level($db_level);