mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 02:31:58 +01:00
tag/note fix
This commit is contained in:
parent
ad85dd1a2f
commit
36b1ac5f18
@ -420,11 +420,11 @@ class ModelSearchSearch extends Model {
|
||||
|
||||
$s = $this->fixup_sphinx_operators($s);
|
||||
|
||||
$q = $this->sphx->query("SELECT iid FROM $sphx_table WHERE uid=" . $session->get("uid") . " AND MATCH('@$field $s') ");
|
||||
if(ENABLE_SYSLOG == 1) { syslog(LOG_INFO, "sql: " . $q->query . ", hits: " . $q->total_found); }
|
||||
$q = $this->sphx->query("SELECT id FROM $sphx_table WHERE uid=" . $session->get("uid") . " AND MATCH('@$field $s') ");
|
||||
if(ENABLE_SYSLOG == 1) { syslog(LOG_INFO, "sphinx query: " . $q->query . ", hits: " . $q->total_found); }
|
||||
|
||||
foreach($q->rows as $a) {
|
||||
$id_list .= "," . $a['iid'];
|
||||
$id_list .= "," . $a['id'];
|
||||
}
|
||||
|
||||
if($id_list) { $id_list = substr($id_list, 1, strlen($id_list)); }
|
||||
|
Loading…
Reference in New Issue
Block a user