mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +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)
|
if($query)
|
||||||
$sql .= " WHERE docs MATCH ".$this->_conn->quote($query);
|
$sql .= " WHERE docs MATCH ".$this->_conn->quote($query);
|
||||||
$res = $this->_conn->query($sql);
|
$res = $this->_conn->query($sql);
|
||||||
|
if(!$res)
|
||||||
|
return false;
|
||||||
$row = $res->fetch();
|
$row = $res->fetch();
|
||||||
|
|
||||||
$sql = "SELECT ".$this->_rawid.", documentid FROM docs";
|
$sql = "SELECT ".$this->_rawid.", documentid FROM docs";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user