gui fixes

This commit is contained in:
SJ
2014-09-22 11:21:40 +02:00
parent 64f6aafeb3
commit e49eac7447
3 changed files with 9 additions and 3 deletions

View File

@ -418,7 +418,7 @@ 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); }
if(ENABLE_SYSLOG == 1) { syslog(LOG_INFO, "sql: " . $q->query . ", hits: " . $q->total_found); }
foreach($q->rows as $a) {
$id_list .= "," . $a['iid'];
@ -426,6 +426,7 @@ class ModelSearchSearch extends Model {
if($id_list) { $id_list = substr($id_list, 1, strlen($id_list)); }
if($id_list == '') { $id_list = "-1"; }
return $id_list;
}