Revision 790

Date:
2020/05/20 20:35:20
Author:
ahitrov
Revision Log:
Delete object if !$data

Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/plugins/sphinx/lib/sphinx/Keeper.pm

     
    40 40 );
    41 41 if ( $doc->status == 1 ) {
    42 42 my $data = $doc->get_search_data;
    43 return undef unless $data;
    43 if ( ref $object && !$data ) {
    44 $object->delete;
    45 } else {
    46 return undef;
    47 }
    44 48 unless ( ref $object ) {
    45 49 $object = sphinx::Search->new( $keeper );
    46 50 $object->status( 1 );