torrents.php list sql debug

This commit is contained in:
xiaomlove
2025-09-20 19:41:29 +07:00
parent f675d4e2d4
commit 409b734d3a

View File

@@ -1002,9 +1002,11 @@ if ($count)
// $query = "SELECT $fieldsStr, categories.mode as search_box_id FROM torrents ".($search_area == 3 || $column == "owner" ? "LEFT JOIN users ON torrents.owner = users.id " : "")." LEFT JOIN categories ON torrents.category=categories.id $tagFilter $where $orderby $limit";
$query = "SELECT $fieldsStr, $sectiontype as search_box_id FROM torrents ".($search_area == 3 || $column == "owner" ? "LEFT JOIN users ON torrents.owner = users.id " : "")."$tagFilter $torrentExtraFilter $where $orderby $limit";
// }
do_log("[TORRENT_LIST_SQL] $query", 'debug');
if (!$shouldUseMeili) {
do_log("[BEFORE_TORRENT_LIST_SQL]", 'debug');
$res = sql_query($query);
do_log("[AFTER_TORRENT_LIST_SQL] $query", 'debug');
}
} else {
unset($res);