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