mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
fix cover issue on page torrents.php
This commit is contained in:
+2
-2
@@ -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'])){
|
||||
|
||||
Reference in New Issue
Block a user