mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
return false if query fails
This commit is contained in:
parent
26b3762962
commit
edd60363f3
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue
Block a user