mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-19 00:01:00 +08:00
Merge pull request #276 from ex-hentai/patch-7
insert search suggestion only when results are found
This commit is contained in:
@@ -702,7 +702,6 @@ $search_area = 0;
|
||||
if (isset($searchstr))
|
||||
{
|
||||
if (!isset($_GET['notnewword']) || !$_GET['notnewword']){
|
||||
insert_suggest($searchstr, $CURUSER['id']);
|
||||
$notnewword="";
|
||||
}
|
||||
else{
|
||||
@@ -956,6 +955,9 @@ do_log("[TORRENT_COUNT_SQL] $sql", 'debug');
|
||||
|
||||
if ($count)
|
||||
{
|
||||
if (isset($searchstr) && (!isset($_GET['notnewword']) || !$_GET['notnewword'])){
|
||||
insert_suggest($searchstr, $CURUSER['id']);
|
||||
}
|
||||
if ($addparam != "")
|
||||
{
|
||||
if ($pagerlink != "")
|
||||
|
||||
Reference in New Issue
Block a user