Skip to content

Commit

Permalink
Don't try to store yet
Browse files Browse the repository at this point in the history
  • Loading branch information
pudge committed Feb 3, 2005
1 parent bb343a2 commit f90db99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/SearchToo/SearchToo/Indexer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ sub getRecords {
# handle delete too?
sub storeRecords {
my($self, $type, $data, $opts) = @_;

return;
return unless $self->_handled($type);

my $slashdb = getCurrentDB();
Expand All @@ -278,7 +278,7 @@ sub storeRecords {

my $count = 0;
for my $record (@$data) {
next unless keys %$record;
next unless $record;

# deal with multiple instances of same type => id
$count++ if $slashdb->sqlInsert('search_index_dump', {
Expand Down

0 comments on commit f90db99

Please sign in to comment.