mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 05:13:54 -07:00
Code formatting (#1026)
This commit is contained in:
parent
671446e089
commit
98bfecc0bf
1 changed files with 41 additions and 41 deletions
|
@ -42,7 +42,7 @@ if (strlen($info_hash) == 32) {
|
|||
|
||||
// Handle multiple hashes
|
||||
|
||||
preg_match_all('/info_hash=([^&]*)/i', $_SERVER["QUERY_STRING"], $info_hash_array);
|
||||
preg_match_all('/info_hash=([^&]*)/i', $_SERVER['QUERY_STRING'], $info_hash_array);
|
||||
|
||||
$torrents = [];
|
||||
$info_hashes = [];
|
||||
|
@ -78,7 +78,7 @@ preg_match_all('/info_hash=([^&]*)/i', $_SERVER["QUERY_STRING"], $info_hash_arra
|
|||
|
||||
$rowset = DB()->fetch_rowset($sql);
|
||||
|
||||
if (count($rowset) > 0) {
|
||||
if (!empty($rowset)) {
|
||||
foreach ($rowset as $scrapes) {
|
||||
$torrents['files'][$scrapes['info_hash']] = [
|
||||
'complete' => (int)$scrapes['seeders'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue