mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +00:00
search even if query is empty
This commit is contained in:
parent
b47e53637d
commit
95b01544f3
|
@ -143,7 +143,9 @@ class SeedDMS_SQLiteFTS_Indexer {
|
||||||
if(!$this->_conn)
|
if(!$this->_conn)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
$sql = "SELECT docid FROM docs WHERE docs MATCH ".$this->_conn->quote($query);
|
$sql = "SELECT docid FROM docs";
|
||||||
|
if($query)
|
||||||
|
$sql .= " WHERE docs MATCH ".$this->_conn->quote($query);
|
||||||
$res = $this->_conn->query($sql);
|
$res = $this->_conn->query($sql);
|
||||||
$hits = array();
|
$hits = array();
|
||||||
if($res) {
|
if($res) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user