mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
torrents.php list sql debug
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user