Skip to content

Commit

Permalink
Merge pull request #126 from DarkaOnLine/fix/php7.2
Browse files Browse the repository at this point in the history
Reset index statements after error was catched
  • Loading branch information
nticaric authored Jan 31, 2018
2 parents 06d68e1 + 6ced58c commit 4b7c36c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Indexer/TNTIndexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,11 @@ public function saveWordlist($stems)
} else {
echo "Error while saving wordlist: ".$e->getMessage()."\n";
}

// Statements must be refreshed, because in this state they have error attached to them.
$this->statementsPrepared = false;
$this->prepareStatementsForIndex();

}
}
return $terms;
Expand Down

0 comments on commit 4b7c36c

Please sign in to comment.