fix cover issue on page torrents.php

This commit is contained in:
xiaomlove
2025-09-20 00:45:53 +07:00
parent 41ad91b183
commit ee4739fd8b
5 changed files with 41 additions and 15 deletions
+2 -2
View File
@@ -943,7 +943,9 @@ if ($shouldUseMeili) {
$resultFromSearchRep = $searchRep->search($searchParams, $CURUSER['id']);
$count = $resultFromSearchRep['total'];
} else {
do_log("[BEFORE_TORRENT_COUNT_SQL]", 'debug');
$res = sql_query($sql);
do_log("[AFTER_TORRENT_COUNT_SQL] $sql", 'debug');
$count = 0;
while($row = mysql_fetch_array($res)) {
$count += $row[0];
@@ -956,8 +958,6 @@ elseif ($torrentsperpage_main)
$torrentsperpage = $torrentsperpage_main;
else $torrentsperpage = 100;
do_log("[TORRENT_COUNT_SQL] $sql", 'debug');
if ($count)
{
if (isset($searchstr) && (!isset($_GET['notnewword']) || !$_GET['notnewword'])){