diff --git a/include/constants.php b/include/constants.php index cf2e7d91..64e9d08a 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@ 0) { +if (!empty($prependIdArr) && $startindex == 0) { $prependIdStr = implode(',', $prependIdArr); $prependRows = \Nexus\Database\NexusDB::select("SELECT $fieldStr FROM torrents LEFT JOIN categories ON category = categories.id where torrents.id in ($prependIdStr) and $where ORDER BY field(torrents.id, $prependIdStr)"); } @@ -180,7 +180,8 @@ foreach ($normalRows as $row) { } } -//dd($prependIdArr, $prependRows, $normalRows, $list); +//dd($prependIdArr, $prependRows, $normalRows, $list, $startindex,last_query()); + $torrentRep = new \App\Repositories\TorrentRepository(); $url = get_protocol_prefix().$BASEURL; $year = substr($datefounded, 0, 4);