Skip to content

Commit

Permalink
Merge pull request #276 from ex-hentai/patch-7
Browse files Browse the repository at this point in the history
insert search suggestion only when results are found
  • Loading branch information
xiaomlove authored Sep 13, 2024
2 parents 85136b7 + 51be17e commit c464ff7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/torrents.php
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,6 @@
if (isset($searchstr))
{
if (!isset($_GET['notnewword']) || !$_GET['notnewword']){
insert_suggest($searchstr, $CURUSER['id']);
$notnewword="";
}
else{
Expand Down Expand Up @@ -956,6 +955,9 @@

if ($count)
{
if (isset($searchstr) && (!isset($_GET['notnewword']) || !$_GET['notnewword'])){
insert_suggest($searchstr, $CURUSER['id']);
}
if ($addparam != "")
{
if ($pagerlink != "")
Expand Down

0 comments on commit c464ff7

Please sign in to comment.