ignore words without id for status

This commit is contained in:
Sarah Hoffmann
2021-08-15 17:49:22 +02:00
parent 75a5c7013f
commit 23e3724abb

View File

@@ -19,7 +19,7 @@ class Tokenizer
public function checkStatus()
{
$sSQL = 'SELECT word_id FROM word limit 1';
$sSQL = 'SELECT word_id FROM word WHERE word_id is not null limit 1';
$iWordID = $this->oDB->getOne($sSQL);
if ($iWordID === false) {
throw new \Exception('Query failed', 703);