From 36b1ac5f1831091363de3ef4133dea35f974c8ba Mon Sep 17 00:00:00 2001 From: SJ Date: Tue, 3 Feb 2015 10:40:55 +0100 Subject: [PATCH] tag/note fix --- webui/model/search/search.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webui/model/search/search.php b/webui/model/search/search.php index 1f186cb3..b1855cd1 100644 --- a/webui/model/search/search.php +++ b/webui/model/search/search.php @@ -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)); }