Browse code

search.php: fix series results displaying all entries for a given series instead of using the search terms for a given series

Clarissa Walker authored on 2026/11/02 12:39:38
Showing 1 changed files
... ...
@@ -243,7 +243,7 @@ if(isset($_POST['submit']) || isset($_GET['offset'])) {
243 243
 	if(!empty($scountquery)) {
244 244
 		$seriesresults = dbquery(_SERIESCOUNT.$scountquery);
245 245
 		list($scount) = dbrow($seriesresults);
246
-		if($scount > 0) $otherresults[] = "<a href='browse.php?type=series&amp;$terms'>$scount "._SERIES."</a>";
246
+		if($scount > 0) $otherresults[] = "<a href='browse.php?type=series&amp;searchtype=$searchtype&amp;$terms'>$scount "._SERIES."</a>";
247 247
 	}
248 248
 	$codeblocks = dbquery("SELECT * FROM ".TABLEPREFIX."fanfiction_codeblocks WHERE code_type = 'otherresults'");
249 249
 	while($code = dbassoc($codeblocks)) {