return false if query fails

This commit is contained in:
Uwe Steinmann 2021-05-05 13:43:40 +02:00
parent 26b3762962
commit edd60363f3

View File

@ -175,6 +175,8 @@ class SeedDMS_SQLiteFTS_Indexer {
if($query)
$sql .= " WHERE docs MATCH ".$this->_conn->quote($query);
$res = $this->_conn->query($sql);
if(!$res)
return false;
$row = $res->fetch();
$sql = "SELECT ".$this->_rawid.", documentid FROM docs";