mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:27:03 +02:00
gui fixes
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user